Catalano.Imaging.Tools
Class SpatialHistogram
- java.lang.Object
-
- Catalano.Imaging.Tools.SpatialHistogram
-
public class SpatialHistogram extends java.lang.ObjectSpatial Histogram.
-
-
Constructor Summary
Constructors Constructor and Description SpatialHistogram()Initializes a new instance of the SpatialHistogram class.SpatialHistogram(int wBlock, int hBlock)Initializes a new instance of the SpatialHistogram class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[]Compute(FastBitmap fastBitmap, IAggregateVectors features)Compute the spatial histogram.int[]Compute(FastBitmap fastBitmap, IBinaryPattern pattern)Compute the spatial histogram.
-
-
-
Constructor Detail
-
SpatialHistogram
public SpatialHistogram()
Initializes a new instance of the SpatialHistogram class.
-
SpatialHistogram
public SpatialHistogram(int wBlock, int hBlock)Initializes a new instance of the SpatialHistogram class.- Parameters:
wBlock- Number of width blocks.hBlock- Number of height blocks.
-
-
Method Detail
-
Compute
public int[] Compute(FastBitmap fastBitmap, IBinaryPattern pattern)
Compute the spatial histogram.- Parameters:
fastBitmap- Image to be processed.pattern- Binary pattern.- Returns:
- Spatial Histogram.
-
Compute
public double[] Compute(FastBitmap fastBitmap, IAggregateVectors features)
Compute the spatial histogram.- Parameters:
fastBitmap- Image to be processed.features- Aggregate vectors.- Returns:
- Spatial features.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG