Represents image statistics for an image. More...
#include <ImageStatistics.h>
Public Member Functions | |
| ImageStatistics () | |
| Default constructor. | |
| virtual | ~ImageStatistics () |
| Default destructor. | |
| ImageStatistics (const ImageStatistics &other) | |
| Copy constructor. | |
| ImageStatistics & | operator= (const ImageStatistics &other) |
| Assignment operator. | |
| virtual void | EnableAll () |
| Enable all channels. | |
| virtual void | DisableAll () |
| Disable all channels. | |
| virtual void | EnableGreyOnly () |
| Enable only the grey channel. | |
| virtual void | EnableRGBOnly () |
| Enable only the RGB channels. | |
| virtual void | EnableHSLOnly () |
| Enable only the HSL channels. | |
| virtual void | GetChannelStatus (StatisticsChannel channel, bool *pEnabled) const |
| Gets the status of a statistics channel. | |
| virtual void | SetChannelStatus (StatisticsChannel channel, bool enabled) |
| Sets the status of a statistics channel. | |
| virtual void | GetRange (StatisticsChannel channel, unsigned int *pMin, unsigned int *pMax) const |
| Gets the range of a statistics channel. | |
| virtual void | GetPixelValueRange (StatisticsChannel channel, unsigned int *pPixelValueMin, unsigned int *pPixelValueMax) const |
| Gets the range of a statistics channel. | |
| virtual void | GetNumPixelValues (StatisticsChannel channel, unsigned int *pNumPixelValues) const |
| Gets the number of unique pixel values in the image. | |
| virtual void | GetMean (StatisticsChannel channel, float *pPixelValueMean) const |
| Gets the mean of the image. | |
| virtual void | GetHistogram (StatisticsChannel channel, int **ppHistogram) const |
| Gets the histogram for the image. | |
| 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. | |
Public Member Functions inherited from IImageStatistics | |
| virtual | ~IImageStatistics () |
| virtual void | EnableAll ()=0 |
| virtual void | DisableAll ()=0 |
| virtual void | EnableGreyOnly ()=0 |
| virtual void | EnableRGBOnly ()=0 |
| virtual void | EnableHSLOnly ()=0 |
| virtual void | GetChannelStatus (StatisticsChannel channel, bool *pEnabled) const =0 |
| virtual void | SetChannelStatus (StatisticsChannel channel, bool enabled)=0 |
| virtual void | GetRange (StatisticsChannel channel, unsigned int *pMin, unsigned int *pMax) const =0 |
| virtual void | GetPixelValueRange (StatisticsChannel channel, unsigned int *pPixelValueMin, unsigned int *pPixelValueMax) const =0 |
| virtual void | GetNumPixelValues (StatisticsChannel channel, unsigned int *pNumPixelValues) const =0 |
| virtual void | GetMean (StatisticsChannel channel, float *pPixelValueMean) const =0 |
| virtual void | GetHistogram (StatisticsChannel channel, int **ppHistogram) const =0 |
| 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 =0 |
Friends | |
| class | ImageStatsCalculator |
Additional Inherited Members | |
Protected Member Functions inherited from IImageStatistics | |
| 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 |