eVision Python API
Loading...
Searching...
No Matches
eVision.EImageStatisticsBW8 Class Reference

Class storing the results of statistics computations on an eVision.EROIBW8. More...

Public Member Functions

None __init__ (self)
 Constructs an eVision.EImageStatisticsBW8 object.
None __init__ (self, eVision.EImageStatisticsBW8 other)
 Constructs an eVision.EImageStatisticsBW8 object.
None __init__ (self, eVision.EROIBW8|None image, eVision.ERegion|None region)
 Constructs an eVision.EImageStatisticsBW8 object.
None __init__ (self, eVision.EROIBW8|None image)
 Constructs an eVision.EImageStatisticsBW8 object.
None SetImage (self, eVision.EROIBW8|None image, eVision.ERegion|None region)
 Sets the reference to the image on which the statistics will be computed.
None SetImage (self, eVision.EROIBW8|None image)
 Sets the reference to the image on which the statistics will be computed.
list[float] GetBinaryMoments (self, int maxOrder)
 Computes the binary moments of pixels above or equal to eVision.EImageStatisticsBW8.HighThreshold up to the requested order on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
list[float] GetWeightedMoments (self, int maxOrder)
 Computes the weighted moments up to the requested order on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
eVision.EBW8 LowThreshold (self)
 Sets/Gets the low threshold used by eVision.EImageStatisticsBW8.NumberOfPixelsBelowLowThreshold and eVision.EImageStatisticsBW8.NumberOfPixelsBetweenThresholds.
 LowThreshold (self, eVision.EBW8 value)
 Sets/Gets the low threshold used by eVision.EImageStatisticsBW8.NumberOfPixelsBelowLowThreshold and eVision.EImageStatisticsBW8.NumberOfPixelsBetweenThresholds.
eVision.EBW8 HighThreshold (self)
 Sets/Gets the high threshold used by eVision.EImageStatisticsBW8.NumberOfPixelsBetweenThresholds and eVision.EImageStatisticsBW8.NumberOfPixelsAboveHighThreshold.
 HighThreshold (self, eVision.EBW8 value)
 Sets/Gets the high threshold used by eVision.EImageStatisticsBW8.NumberOfPixelsBetweenThresholds and eVision.EImageStatisticsBW8.NumberOfPixelsAboveHighThreshold.
eVision.EBW8 PixelMin (self)
 Computes the lowest pixel on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
eVision.EBW8 PixelMax (self)
 Computes the biggest pixel on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
float PixelAverage (self)
 Computes the pixel average on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
float PixelStdDev (self)
 Computes the standard deviation of the pixels on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
float PixelVariance (self)
 Computes the variance of the pixels on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
int NumberOfPixelsBelowLowThreshold (self)
 Computes the number of pixel strictly below eVision.EImageStatisticsBW8.LowThreshold on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
int NumberOfPixelsBetweenThresholds (self)
 Computes the number of pixel between eVision.EImageStatisticsBW8.LowThreshold (inclusive) and eVision.EImageStatisticsBW8.HighThreshold (exclusive) on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
int NumberOfPixelsAboveHighThreshold (self)
 Computes the number of pixel above or equal to eVision.EImageStatisticsBW8.HighThreshold on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.
eVision.EPoint GravityCenterOfPixelsAboveHighThreshold (self)
 Computes the center of gravity of pixels above or equal to eVision.EImageStatisticsBW8.HighThreshold on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Detailed Description

Class storing the results of statistics computations on an eVision.EROIBW8.

Remarks:

License(s): EasyImage

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.EImageStatisticsBW8.__init__ ( self)

Constructs an eVision.EImageStatisticsBW8 object.

Remarks:

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.

◆ __init__() [2/4]

None eVision.EImageStatisticsBW8.__init__ ( self,
eVision.EImageStatisticsBW8 other )

Constructs an eVision.EImageStatisticsBW8 object.

Remarks:

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.

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

◆ __init__() [3/4]

None eVision.EImageStatisticsBW8.__init__ ( self,
eVision.EROIBW8 | None image,
eVision.ERegion | None region )

Constructs an eVision.EImageStatisticsBW8 object.

Remarks:

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.

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

◆ __init__() [4/4]

None eVision.EImageStatisticsBW8.__init__ ( self,
eVision.EROIBW8 | None image )

Constructs an eVision.EImageStatisticsBW8 object.

Remarks:

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.

Parameters
imageReference to the image on which statistics are computed.

Member Function Documentation

◆ GetBinaryMoments()

list[float] eVision.EImageStatisticsBW8.GetBinaryMoments ( self,
int maxOrder )

Computes the binary moments of pixels above or equal to eVision.EImageStatisticsBW8.HighThreshold up to the requested order on the image (and region) set by eVision.EImageStatisticsBW8.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).

Remarks:

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

Parameters
maxOrderMax order (inclusive) of the moments to compute, may be 1 or 2.

◆ GetWeightedMoments()

list[float] eVision.EImageStatisticsBW8.GetWeightedMoments ( self,
int maxOrder )

Computes the weighted moments up to the requested order on the image (and region) set by eVision.EImageStatisticsBW8.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).

Remarks:

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

Parameters
maxOrderMax order (inclusive) of the moments to compute, may be 1, 2, 3 or 4.

◆ GravityCenterOfPixelsAboveHighThreshold()

eVision.EPoint eVision.EImageStatisticsBW8.GravityCenterOfPixelsAboveHighThreshold ( self)

Computes the center of gravity of pixels above or equal to eVision.EImageStatisticsBW8.HighThreshold on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ HighThreshold() [1/2]

◆ HighThreshold() [2/2]

◆ LowThreshold() [1/2]

◆ LowThreshold() [2/2]

◆ NumberOfPixelsAboveHighThreshold()

int eVision.EImageStatisticsBW8.NumberOfPixelsAboveHighThreshold ( self)

Computes the number of pixel above or equal to eVision.EImageStatisticsBW8.HighThreshold on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ NumberOfPixelsBelowLowThreshold()

int eVision.EImageStatisticsBW8.NumberOfPixelsBelowLowThreshold ( self)

Computes the number of pixel strictly below eVision.EImageStatisticsBW8.LowThreshold on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ NumberOfPixelsBetweenThresholds()

int eVision.EImageStatisticsBW8.NumberOfPixelsBetweenThresholds ( self)

Computes the number of pixel between eVision.EImageStatisticsBW8.LowThreshold (inclusive) and eVision.EImageStatisticsBW8.HighThreshold (exclusive) on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ PixelAverage()

float eVision.EImageStatisticsBW8.PixelAverage ( self)

Computes the pixel average on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ PixelMax()

eVision.EBW8 eVision.EImageStatisticsBW8.PixelMax ( self)

Computes the biggest pixel on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ PixelMin()

eVision.EBW8 eVision.EImageStatisticsBW8.PixelMin ( self)

Computes the lowest pixel on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ PixelStdDev()

float eVision.EImageStatisticsBW8.PixelStdDev ( self)

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

Remarks:

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

◆ PixelVariance()

float eVision.EImageStatisticsBW8.PixelVariance ( self)

Computes the variance of the pixels on the image (and region) set by eVision.EImageStatisticsBW8.SetImage.

Remarks:

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

◆ SetImage() [1/2]

None eVision.EImageStatisticsBW8.SetImage ( self,
eVision.EROIBW8 | None image )

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

Remarks:

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.

Parameters
imageReference to the image on which statistics are computed.

◆ SetImage() [2/2]

None eVision.EImageStatisticsBW8.SetImage ( self,
eVision.EROIBW8 | None image,
eVision.ERegion | None region )

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

Remarks:

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.

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