Package boofcv.alg.feature.color
Class HistogramFeatureOps
java.lang.Object
boofcv.alg.feature.color.HistogramFeatureOps
Type 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 ImageStatistics
the initial scale of
the image doesn't matter. More specifically, ImageStatistics
simply
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
histogram
(GrayF32 image, float minPixelValue, float maxPixelValue, TupleDesc_F64 histogram) Computes a single-band normalized histogram from a floating point image..static void
histogram
(GrayU16 image, int maxPixelValue, TupleDesc_F64 histogram) Computes a single-band normalized histogram from an integer image..static void
histogram
(GrayU8 image, int maxPixelValue, TupleDesc_F64 histogram) Computes a single-band normalized histogram from an integer image..static void
histogram_F32
(Planar<GrayF32> image, Histogram_F64 histogram) static void
histogram_U8
(Planar<GrayU8> image, Histogram_F64 histogram)
-
Constructor Details
-
HistogramFeatureOps
public HistogramFeatureOps()
-
-
Method Details
-
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
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
- Parameters:
image
- input imagehistogram
- preconfigured histogram to store the output
-
histogram_U8
- Parameters:
image
- input imagehistogram
- preconfigured histogram to store the output
-