boofcv.alg.feature.color
Class HistogramFeatureOps
- java.lang.Object
-
- boofcv.alg.feature.color.HistogramFeatureOps
-
public class HistogramFeatureOps extends java.lang.ObjectType specific operations for creating histgrams of image pixel values. The histogram is a feature descriptor and all the feature descriptor operations can be used on these histograms.
Unlike histogram operations in
ImageStatisticsthe initial scale of the image doesn't matter. More specifically,ImageStatisticssimply rounds the value to the nearest one and adds it to the element in a histogram. While these operations use the image's max values and the number of elements in the histogram to compute the bin period.
-
-
Constructor Summary
Constructors Constructor and Description HistogramFeatureOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidhistogram_F32(Planar<GrayF32> image, Histogram_F64 histogram)static voidhistogram_U8(Planar<GrayU8> image, Histogram_F64 histogram)static voidhistogram(GrayF32 image, float minPixelValue, float maxPixelValue, TupleDesc_F64 histogram)Computes a single-band normalized histogram from a floating point image..static voidhistogram(GrayU16 image, int maxPixelValue, TupleDesc_F64 histogram)Computes a single-band normalized histogram from an integer image..static voidhistogram(GrayU8 image, int maxPixelValue, TupleDesc_F64 histogram)Computes a single-band normalized histogram from an integer image..
-
-
-
Method Detail
-
histogram
public static void histogram(GrayU8 image, int maxPixelValue, TupleDesc_F64 histogram)
Computes a single-band normalized histogram from an integer image..- Parameters:
image- Input image. Not modified.maxPixelValue- Maximum possible value for a pixel for all bands.histogram- Output histogram. Must have same number of bands as input image. Modified.
-
histogram
public static void histogram(GrayU16 image, int maxPixelValue, TupleDesc_F64 histogram)
Computes a single-band normalized histogram from an integer image..- Parameters:
image- Input image. Not modified.maxPixelValue- Maximum possible value for a pixelhistogram- Output histogram. Must have same number of bands as input image. Modified.
-
histogram
public static void histogram(GrayF32 image, float minPixelValue, float maxPixelValue, TupleDesc_F64 histogram)
Computes a single-band normalized histogram from a floating point image..- Parameters:
image- Input image. Not modified.minPixelValue- Minimum possible for for a pixel. InclusivemaxPixelValue- Maximum possible value for a pixel. Inclusivehistogram- The output histogram.
-
histogram_F32
public static void histogram_F32(Planar<GrayF32> image, Histogram_F64 histogram)
- Parameters:
image- input imagehistogram- preconfigured histogram to store the output
-
histogram_U8
public static void histogram_U8(Planar<GrayU8> image, Histogram_F64 histogram)
- Parameters:
image- input imagehistogram- preconfigured histogram to store the output
-
-
DataMelt 3.0 © DataMelt by jWork.ORG