eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EImageStatisticsBW16 Class Reference

Class storing the results of statistics computations on an EROIBW16. More...

#include <eVision/EasyImage/EImageStatisticsBW16.h>

Collaboration diagram for eVision::EImageStatisticsBW16:

Public Member Functions

 EImageStatisticsBW16 ()
 Constructs an EImageStatisticsBW16 object.
 EImageStatisticsBW16 (const eVision::EImageStatisticsBW16 &other)
 Constructs an EImageStatisticsBW16 object.
 EImageStatisticsBW16 (const eVision::EROIBW16 *image, const eVision::ERegion *region)
 Constructs an EImageStatisticsBW16 object.
 EImageStatisticsBW16 (const eVision::EROIBW16 *image)
 Constructs an EImageStatisticsBW16 object.
virtual ~EImageStatisticsBW16 () throw ()
eVision::EImageStatisticsBW16 & operator= (const eVision::EImageStatisticsBW16 &other)
 Assignment operator.
void SetImage (const eVision::EROIBW16 *image, const eVision::ERegion *region)
 Sets the reference to the image on which the statistics will be computed.
void SetImage (const eVision::EROIBW16 *image)
 Sets the reference to the image on which the statistics will be computed.
void SetLowThreshold (eVision::EBW16 lowThreshold)
 Sets/Gets the low threshold used by EImageStatisticsBW16::GetNumberOfPixelsBelowLowThreshold and EImageStatisticsBW16::GetNumberOfPixelsBetweenThresholds.
eVision::EBW16 GetLowThreshold ()
 Sets/Gets the low threshold used by EImageStatisticsBW16::GetNumberOfPixelsBelowLowThreshold and EImageStatisticsBW16::GetNumberOfPixelsBetweenThresholds.
void SetHighThreshold (eVision::EBW16 highThreshold)
 Sets/Gets the high threshold used by EImageStatisticsBW16::GetNumberOfPixelsBetweenThresholds and EImageStatisticsBW16::GetNumberOfPixelsAboveHighThreshold.
eVision::EBW16 GetHighThreshold ()
 Sets/Gets the high threshold used by EImageStatisticsBW16::GetNumberOfPixelsBetweenThresholds and EImageStatisticsBW16::GetNumberOfPixelsAboveHighThreshold.
eVision::EBW16 GetPixelMin ()
 Computes the lowest pixel on the image (and region) set by EImageStatisticsBW16::SetImage.
eVision::EBW16 GetPixelMax ()
 Computes the biggest pixel on the image (and region) set by EImageStatisticsBW16::SetImage.
float GetPixelAverage ()
 Computes the pixel average on the image (and region) set by EImageStatisticsBW16::SetImage.
float GetPixelStdDev ()
 Computes the standard deviation of the pixels on the image (and region) set by EImageStatisticsBW16::SetImage.
float GetPixelVariance ()
 Computes the variance of the pixels on the image (and region) set by EImageStatisticsBW16::SetImage.
uint64_t GetNumberOfPixelsBelowLowThreshold ()
 Computes the number of pixel strictly below EImageStatisticsBW16::SetLowThreshold on the image (and region) set by EImageStatisticsBW16::SetImage.
uint64_t GetNumberOfPixelsBetweenThresholds ()
 Computes the number of pixel between EImageStatisticsBW16::SetLowThreshold (inclusive) and EImageStatisticsBW16::SetHighThreshold (exclusive) on the image (and region) set by EImageStatisticsBW16::SetImage.
uint64_t GetNumberOfPixelsAboveHighThreshold ()
 Computes the number of pixel above or equal to EImageStatisticsBW16::SetHighThreshold on the image (and region) set by EImageStatisticsBW16::SetImage.
eVision::EPoint GetGravityCenterOfPixelsAboveHighThreshold ()
 Computes the center of gravity of pixels above or equal to EImageStatisticsBW16::SetHighThreshold on the image (and region) set by EImageStatisticsBW16::SetImage.
std::vector< float > GetBinaryMoments (int32_t maxOrder)
 Computes the binary moments of pixels above or equal to EImageStatisticsBW16::SetHighThreshold up to the requested order on the image (and region) set by EImageStatisticsBW16::SetImage.
std::vector< float > GetWeightedMoments (int32_t maxOrder)
 Computes the weighted moments up to the requested order on the image (and region) set by EImageStatisticsBW16::SetImage.
 EImageStatisticsBW16 (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Class storing the results of statistics computations on an EROIBW16.

License(s): EasyImage

Constructor & Destructor Documentation

◆ EImageStatisticsBW16() [1/5]

eVision::EImageStatisticsBW16::EImageStatisticsBW16 ( )

Constructs an EImageStatisticsBW16 object.

Image and region aren't copied inside the class. Consequently, modifying them after calling this constructor will have an influence on the behavior of this class.

◆ EImageStatisticsBW16() [2/5]

eVision::EImageStatisticsBW16::EImageStatisticsBW16 ( const eVision::EImageStatisticsBW16 & other)

Constructs an EImageStatisticsBW16 object.

Parameters
otherThe other instance of EImageStatisticsBW16 from which to construct this one.

Image and region aren't copied inside the class. Consequently, modifying them after calling this constructor will have an influence on the behavior of this class.

◆ EImageStatisticsBW16() [3/5]

eVision::EImageStatisticsBW16::EImageStatisticsBW16 ( const eVision::EROIBW16 * image,
const eVision::ERegion * region )

Constructs an EImageStatisticsBW16 object.

Parameters
imageReference to the image on which statistics are computed.
regionReference to the region used to delimit the image.

Image and region aren't copied inside the class. Consequently, modifying them after calling this constructor will have an influence on the behavior of this class.

◆ EImageStatisticsBW16() [4/5]

eVision::EImageStatisticsBW16::EImageStatisticsBW16 ( const eVision::EROIBW16 * image)

Constructs an EImageStatisticsBW16 object.

Parameters
imageReference to the image on which statistics are computed.

Image and region aren't copied inside the class. Consequently, modifying them after calling this constructor will have an influence on the behavior of this class.

◆ ~EImageStatisticsBW16()

eVision::EImageStatisticsBW16::~EImageStatisticsBW16 ( )
throw ( )
virtual

◆ EImageStatisticsBW16() [5/5]

eVision::EImageStatisticsBW16::EImageStatisticsBW16 ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetBinaryMoments()

std::vector< float > eVision::EImageStatisticsBW16::GetBinaryMoments ( int32_t maxOrder)

Computes the binary moments of pixels above or equal to EImageStatisticsBW16::SetHighThreshold up to the requested order on the image (and region) set by EImageStatisticsBW16::SetImage.

Returns a vector containing the moments in the following order (up to the maxOrder given):

  • [0] area (0th order moment).
  • [1] sum of abscissas (1st order, uncentered moment).
  • [2] sum of ordinates (1st order, uncentered moment).
  • [3] sum of squared abscissas (2nd order, uncentered moment).
  • [4] sum of product of abscissas and ordinates (2nd order, uncentered moment).
  • [5] sum of squared ordinates (2nd order, uncentered moment).
Parameters
maxOrderMax order (inclusive) of the moments to compute, may be 1 or 2.

Computes the binary moments up to the requested order if they are not computed.

◆ GetGravityCenterOfPixelsAboveHighThreshold()

eVision::EPoint eVision::EImageStatisticsBW16::GetGravityCenterOfPixelsAboveHighThreshold ( )

Computes the center of gravity of pixels above or equal to EImageStatisticsBW16::SetHighThreshold on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the center of gravity above high threshold if it is not computed.

◆ GetHighThreshold()

◆ GetLowThreshold()

◆ GetNumberOfPixelsAboveHighThreshold()

uint64_t eVision::EImageStatisticsBW16::GetNumberOfPixelsAboveHighThreshold ( )

Computes the number of pixel above or equal to EImageStatisticsBW16::SetHighThreshold on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the number of pixels below/above/between both thresholds if they are not computed.

◆ GetNumberOfPixelsBelowLowThreshold()

uint64_t eVision::EImageStatisticsBW16::GetNumberOfPixelsBelowLowThreshold ( )

Computes the number of pixel strictly below EImageStatisticsBW16::SetLowThreshold on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the number of pixels below/above/between both thresholds if they are not computed.

◆ GetNumberOfPixelsBetweenThresholds()

uint64_t eVision::EImageStatisticsBW16::GetNumberOfPixelsBetweenThresholds ( )

Computes the number of pixel between EImageStatisticsBW16::SetLowThreshold (inclusive) and EImageStatisticsBW16::SetHighThreshold (exclusive) on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the number of pixels below/above/between both thresholds if they are not computed.

◆ GetPixelAverage()

float eVision::EImageStatisticsBW16::GetPixelAverage ( )

Computes the pixel average on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the min, max and average if average wasn't computed previously.

◆ GetPixelMax()

eVision::EBW16 eVision::EImageStatisticsBW16::GetPixelMax ( )

Computes the biggest pixel on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the min, max and average if max wasn't computed previously.

◆ GetPixelMin()

eVision::EBW16 eVision::EImageStatisticsBW16::GetPixelMin ( )

Computes the lowest pixel on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the min, max and average if min wasn't computed previously.

◆ GetPixelStdDev()

float eVision::EImageStatisticsBW16::GetPixelStdDev ( )

Computes the standard deviation of the pixels on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the standard derivation, variance and average if standard derivation wasn't computed previously.

◆ GetPixelVariance()

float eVision::EImageStatisticsBW16::GetPixelVariance ( )

Computes the variance of the pixels on the image (and region) set by EImageStatisticsBW16::SetImage.

Computes the standard derivation, variance and average if variance wasn't computed previously.

◆ GetWeightedMoments()

std::vector< float > eVision::EImageStatisticsBW16::GetWeightedMoments ( int32_t maxOrder)

Computes the weighted moments up to the requested order on the image (and region) set by EImageStatisticsBW16::SetImage.

Returns a vector containing the moments in the following order (up to the maxOrder given):

  • [0] total gray value (0th order moment).
  • [1] weighted sum of abscissas (1st order, uncentered moment).
  • [2] weighted sum of ordinates (1st order, uncentered moment).
  • [3] weighted sum of squared abscissas (2nd order, uncentered moment).
  • [4] weighted sum of product of abscissas and ordinates (2nd order, uncentered moment).
  • [5] weighted sum of squared ordinates (2nd order, uncentered moment).
  • [6] weighted sum of cubic abscissas (3rd order, uncentered moment).
  • [7] weighted sum of product of squared abscissas and ordinates (3rd order, uncentered moment).
  • [8] weighted sum of product of abscissas and squared ordinates (3rd order, uncentered moment).
  • [9] weighted sum of cubic ordinates (3rd order, uncentered moment).
  • [10] weighted sum of abscissas^4 (4th order, uncentered moment).
  • [11] weighted sum of product of cubic abscissas and ordinates (4th order, uncentered moment).
  • [12] weighted sum of product of squared abscissas and squared ordinates (4th order, uncentered moment).
  • [13] weighted sum of product of abscissas and cubic ordinates (4th order, uncentered moment).
  • [14] weighted sum of ordinates^4 (4th order, uncentered moment).
Parameters
maxOrderMax order (inclusive) of the moments to compute, may be 1, 2, 3 or 4.

Computes the weighted moments up to the requested order if they are not computed.

◆ operator=()

eVision::EImageStatisticsBW16 & eVision::EImageStatisticsBW16::operator= ( const eVision::EImageStatisticsBW16 & other)

Assignment operator.

Parameters
otherThe other instance of EImageStatisticsBW16 to assign this one to.

◆ SetHighThreshold()

void eVision::EImageStatisticsBW16::SetHighThreshold ( eVision::EBW16 highThreshold)

◆ SetImage() [1/2]

void eVision::EImageStatisticsBW16::SetImage ( const eVision::EROIBW16 * image)

Sets the reference to the image on which the statistics will be computed.

Parameters
imageReference to the image on which statistics are computed.

Image and region aren't copied inside the class. Consequently, modifying them after calling this method will have an influence on the behavior of this class.

◆ SetImage() [2/2]

void eVision::EImageStatisticsBW16::SetImage ( const eVision::EROIBW16 * image,
const eVision::ERegion * region )

Sets the reference to the image on which the statistics will be computed.

Parameters
imageReference to the image on which statistics are computed.
regionReference to the region used to delimit the image.

Image and region aren't copied inside the class. Consequently, modifying them after calling this method will have an influence on the behavior of this class.

◆ SetLowThreshold()

void eVision::EImageStatisticsBW16::SetLowThreshold ( eVision::EBW16 lowThreshold)

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EImageStatisticsBW16::wrappedClass_