Collection of functions for analyzing the image histogram. More...
Classes | |
| class | Histogram |
| A single histogram result. More... | |
Functions | |
| std::vector< Histogram > | CreateImageHistograms (const Image &image, Rect< int > aoi, double density=1.0) |
| Creates a histogram for each plane of the aoi in the given image. | |
| std::vector< Histogram > | CreateImageHistograms (const Image &image, Area2D aoi, double density=1.0) |
| Creates a histogram for each plane of the aoi in the given image. | |
| std::vector< Histogram > | CreateImageHistograms (const Image &image, double density=1.0) |
| Creates a histogram for each plane of the whole image. | |
| Histogram | CreatePlaneHistogram (const ImagePlane &imagePlane, Rect< int > aoi, double density=1.0) |
| Creates a histogram for the aoi in the given plane. | |
| Histogram | CreatePlaneHistogram (const ImagePlane &imagePlane, Area2D aoi, double density=1.0) |
| Creates a histogram for the aoi in the given plane. | |
| Histogram | CreatePlaneHistogram (const ImagePlane &imagePlane, double density=1.0) |
| Creates a histogram for the whole plane. | |
| template<class HISTVAL, class RANGE> | |
| TypedRange< std::vector< double >, double, RANGE >::type | FilterHistogram (const std::vector< HISTVAL > &histogram, const RANGE &kernel) |
| Filter a histogram array with the given kernel. At the beginning and end of the histogram, the histogram uses constant extension. | |
| std::vector< int > | FindHistogramPeaks (const std::vector< uint64_t > &histogram, int blurSize, int minDiff) |
| Find peaks in the histogram identified by the supplied criteria. | |
| uint64_t | SumHistogramBetween (const std::vector< uint64_t > &histogram, int lowerLimit, int upperLimit) |
| Count the number of pixels that lie between two limits in the histogram. | |
Collection of functions for analyzing the image histogram.
|
inline |
Creates a histogram for each plane of the aoi in the given image.
| [in] | image | Image to create histograms for. |
| [in] | aoi | Area of interest in CoordinateSystemType::ImageCoordinates. |
| [in] | density | Percentage of pixels to process where 0 is 0% and 1.0 is 100%. |
| Any | exception derived from std::exception including CvbException. |
Using the Area2D as an overlay uses the CoordinateSystemType::ImageCoordinates.
|
inline |
Creates a histogram for each plane of the whole image.
| [in] | image | Image to create histograms for. |
| [in] | density | Percentage of pixels to process where 0 is 0% and 1.0 is 100%. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Creates a histogram for each plane of the aoi in the given image.
| [in] | image | Image to create histograms for. |
| [in] | aoi | Area of interest in CoordinateSystemType::PixelCoordinates. |
| [in] | density | Percentage of pixels to process where 0 is 0% and 1.0 is 100%. |
| Any | exception derived from std::exception including CvbException. |
Using the Rect<int> as an overlay uses the CoordinateSystemType::PixelCoordinates.
|
inline |
Creates a histogram for the aoi in the given plane.
| [in] | imagePlane | Image plane to create histogram for. |
| [in] | aoi | Area of interest in CoordinateSystemType::ImageCoordinates. |
| [in] | density | Percentage of pixels to process where 0 is 0% and 1.0 is 100%. |
| Any | exception derived from std::exception including CvbException. |
Using the Rect<int> as an overlay uses the CoordinateSystemType::PixelCoordinates.
|
inline |
Creates a histogram for the whole plane.
| [in] | imagePlane | Image plane to create histogram for. |
| [in] | density | Percentage of pixels to process where 0 is 0% and 1.0 is 100%. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Creates a histogram for the aoi in the given plane.
| [in] | imagePlane | Image plane to create histogram for. |
| [in] | aoi | Area of interest in CoordinateSystemType::PixelCoordinates. |
| [in] | density | Percentage of pixels to process where 0 is 0% and 1.0 is 100%. |
| Any | exception derived from std::exception including CvbException. |
Using the Rect<int> as an overlay uses the CoordinateSystemType::PixelCoordinates.
|
inline |
Filter a histogram array with the given kernel. At the beginning and end of the histogram, the histogram uses constant extension.
| [in] | histogram | Histogram to be filtered. |
| [in] | kernel | Kernel to be used. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Find peaks in the histogram identified by the supplied criteria.
| [in] | histogram | Histogram to analyze. |
| [in] | blurSize | Averaging window size (must be >= 1). |
| [in] | minDiff | Minimum grey value difference between two peaks. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Count the number of pixels that lie between two limits in the histogram.
| [in] | histogram | Histogram to calculate the sum on. |
| [in] | lowerLimit | Lower limit to count from. |
| [in] | upperLimit | Upper limit to count to (including). |
| Any | exception derived from std::exception including CvbException. |