Class NonAveragingKernel
- java.lang.Object
-
- dev.brachtendorf.jimagehash.hashAlgorithms.filter.Kernel
-
- dev.brachtendorf.jimagehash.hashAlgorithms.filter.NonAveragingKernel
-
- All Implemented Interfaces:
Filter,Serializable
- Direct Known Subclasses:
MaximumKernel,MedianKernel,MinimumKernel
public abstract class NonAveragingKernel extends Kernel
- Since:
- 3.0.0
- Author:
- Kilian
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class dev.brachtendorf.jimagehash.hashAlgorithms.filter.Kernel
Kernel.EdgeHandlingStrategy, Kernel.GrayScaleFilter
-
-
Field Summary
-
Fields inherited from class dev.brachtendorf.jimagehash.hashAlgorithms.filter.Kernel
edgeHandling, mask
-
-
Constructor Summary
Constructors Modifier Constructor Description NonAveragingKernel(double[][] mask)Create a kernel with the given masks dimension.NonAveragingKernel(int width, int height)protectedNonAveragingKernel(Kernel.EdgeHandlingStrategy strat)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double[][]computePotentialValues(byte[][] input, int x, int y)protected double[][]computePotentialValues(double[][] input, int x, int y)protected double[][]computePotentialValues(int[][] input, int x, int y)-
Methods inherited from class dev.brachtendorf.jimagehash.hashAlgorithms.filter.Kernel
apply, apply, apply, applyByte, applyByte, applyInt, applyInt, boxFilter, boxFilterNormalized, boxFilterNormalizedSep, calcValue, calcValue, calcValue, edgeDetectionFilter, embossHorizontontalFilter, embossLeftDiagonalFilter, embossleftRightFilter, embossRightDiagonalFilter, equals, filter, gaussianFilter, hashCode, identityFilter, toString, zeroFilter
-
-
-
-
Constructor Detail
-
NonAveragingKernel
@Deprecated protected NonAveragingKernel(Kernel.EdgeHandlingStrategy strat)
Deprecated.Empty constructor used by inheriting classes which are not able to provide a mask during first constructor call. The inheriting class promises to provide a mask and all checks by itself- Parameters:
strat- EdgeHandlingStrategy to use
-
NonAveragingKernel
public NonAveragingKernel(int width, int height)
-
NonAveragingKernel
public NonAveragingKernel(double[][] mask)
Create a kernel with the given masks dimension. The masks acts as weight filter increasing or decreasing the weight of the value during convolution. For an example see the javadoc of the class.- Parameters:
mask- weight matrix used to judge which value is the maximum
-
-
Method Detail
-
computePotentialValues
protected double[][] computePotentialValues(byte[][] input, int x, int y)
-
computePotentialValues
protected double[][] computePotentialValues(int[][] input, int x, int y)
-
computePotentialValues
protected double[][] computePotentialValues(double[][] input, int x, int y)
-
-