Represents image statistics for an image. More...
Public Member Functions | |
ImageStatistics () | |
Default constructor. More... | |
virtual | ~ImageStatistics () |
Default destructor. More... | |
ImageStatistics (const ImageStatistics &other) | |
Copy constructor. More... | |
ImageStatistics & | operator= (const ImageStatistics &other) |
Assignment operator. More... | |
virtual void | EnableAll () |
Enable all channels. More... | |
virtual void | DisableAll () |
Disable all channels. More... | |
virtual void | EnableGreyOnly () |
Enable only the grey channel. More... | |
virtual void | EnableRGBOnly () |
Enable only the RGB channels. More... | |
virtual void | EnableHSLOnly () |
Enable only the HSL channels. More... | |
virtual void | GetChannelStatus (StatisticsChannel channel, bool *pEnabled) const |
Gets the status of a statistics channel. More... | |
virtual void | SetChannelStatus (StatisticsChannel channel, bool enabled) |
Sets the status of a statistics channel. More... | |
virtual void | GetRange (StatisticsChannel channel, unsigned int *pMin, unsigned int *pMax) const |
Gets the range of a statistics channel. More... | |
virtual void | GetPixelValueRange (StatisticsChannel channel, unsigned int *pPixelValueMin, unsigned int *pPixelValueMax) const |
Gets the range of a statistics channel. More... | |
virtual void | GetNumPixelValues (StatisticsChannel channel, unsigned int *pNumPixelValues) const |
Gets the number of unique pixel values in the image. More... | |
virtual void | GetMean (StatisticsChannel channel, float *pPixelValueMean) const |
Gets the mean of the image. More... | |
virtual void | GetHistogram (StatisticsChannel channel, int **ppHistogram) const |
Gets the histogram for the image. More... | |
virtual void | GetStatistics (StatisticsChannel channel, unsigned int *pRangeMin=NULL, unsigned int *pRangeMax=NULL, unsigned int *pPixelValueMin=NULL, unsigned int *pPixelValueMax=NULL, unsigned int *pNumPixelValues=NULL, float *pPixelValueMean=NULL, int **ppHistogram=NULL) const |
Gets all statistics for the image. More... | |
![]() | |
virtual | ~IImageStatistics () |
Friends | |
class | ImageStatsCalculator |
Additional Inherited Members | |
![]() | |
IImageStatistics () | |
IImageStatistics (const IImageStatistics &) | |
Represents image statistics for an image.
ImageStatistics | ( | ) |
Default constructor.
|
virtual |
Default destructor.
ImageStatistics | ( | const ImageStatistics & | other | ) |
Copy constructor.
|
virtual |
Disable all channels.
Implements IImageStatistics.
|
virtual |
Enable all channels.
Implements IImageStatistics.
|
virtual |
Enable only the grey channel.
Implements IImageStatistics.
|
virtual |
Enable only the HSL channels.
Implements IImageStatistics.
|
virtual |
Enable only the RGB channels.
Implements IImageStatistics.
|
virtual |
Gets the status of a statistics channel.
channel | The statistics channel. |
pEnabled | Whether the channel is enabled. |
Implements IImageStatistics.
|
virtual |
Gets the histogram for the image.
channel | The statistics channel. |
ppHistogram | Pointer to an array containing the histogram. |
Implements IImageStatistics.
|
virtual |
Gets the mean of the image.
channel | The statistics channel. |
pPixelValueMean | The mean of the image. |
Implements IImageStatistics.
|
virtual |
Gets the number of unique pixel values in the image.
channel | The statistics channel. |
pNumPixelValues | The number of unique pixel values. |
Implements IImageStatistics.
|
virtual |
Gets the range of a statistics channel.
The values returned are the maximum values recorded for all pixels in the image.
channel | The statistics channel. |
pPixelValueMin | The minimum pixel value. |
pPixelValueMax | The maximum pixel value. |
Implements IImageStatistics.
|
virtual |
Gets the range of a statistics channel.
The values returned are the maximum possible values for any given pixel in the image. This is generally 0-255 for 8 bit images, and 0-65535 for 16 bit images.
channel | The statistics channel. |
pMin | The minimum possible value. |
pMax | The maximum possible value. |
Implements IImageStatistics.
|
virtual |
Gets all statistics for the image.
channel | The statistics channel. |
pRangeMin | The minimum possible value. |
pRangeMax | The maximum possible value. |
pPixelValueMin | The minimum pixel value. |
pPixelValueMax | The maximum pixel value. |
pNumPixelValues | The number of unique pixel values. |
pPixelValueMean | The mean of the image. |
ppHistogram | Pointer to an array containing the histogram. |
Implements IImageStatistics.
ImageStatistics& operator= | ( | const ImageStatistics & | other | ) |
Assignment operator.
other | The ImageStatistics object to copy from. |
|
virtual |
Sets the status of a statistics channel.
channel | The statistics channel. |
enabled | Whether the channel should be enabled. |
Implements IImageStatistics.
|
friend |
Contact Support | Spinnaker® SDK Programmer's Guide and API Reference | Thu Dec 16 2021 © FLIR Integrated Imaging Solutions Inc. All rights reserved. |