public class HistogramFeatureOps
extends java.lang.Object
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 and Description |
|---|
HistogramFeatureOps() |
| Modifier and Type | Method and Description |
|---|---|
static void |
histogram_F32(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> image,
Histogram_F64 histogram)
Constructs an N-D histogram from a
Planar GrayF32 image. |
static void |
histogram_U8(boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> image,
Histogram_F64 histogram)
Constructs an N-D histogram from a
Planar GrayU8 image. |
static void |
histogram(boofcv.struct.image.GrayF32 image,
float minPixelValue,
float maxPixelValue,
TupleDesc_F64 histogram)
Computes a single-band normalized histogram from a floating point image..
|
static void |
histogram(boofcv.struct.image.GrayU16 image,
int maxPixelValue,
TupleDesc_F64 histogram)
Computes a single-band normalized histogram from an integer image..
|
static void |
histogram(boofcv.struct.image.GrayU8 image,
int maxPixelValue,
TupleDesc_F64 histogram)
Computes a single-band normalized histogram from an integer image..
|
public static void histogram(boofcv.struct.image.GrayU8 image,
int maxPixelValue,
TupleDesc_F64 histogram)
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.public static void histogram(boofcv.struct.image.GrayU16 image,
int maxPixelValue,
TupleDesc_F64 histogram)
image - Input image. Not modified.maxPixelValue - Maximum possible value for a pixelhistogram - Output histogram. Must have same number of bands as input image. Modified.public static void histogram(boofcv.struct.image.GrayF32 image,
float minPixelValue,
float maxPixelValue,
TupleDesc_F64 histogram)
image - Input image. Not modified.minPixelValue - Minimum possible for for a pixel. InclusivemaxPixelValue - Maximum possible value for a pixel. Inclusivehistogram - The output histogram.public static void histogram_F32(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> image,
Histogram_F64 histogram)
Planar GrayF32 image.image - input imagehistogram - preconfigured histogram to store the outputpublic static void histogram_U8(boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> image,
Histogram_F64 histogram)
Planar GrayU8 image.image - input imagehistogram - preconfigured histogram to store the output