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

Used to store the scratch detection parameters. More...

Public Member Functions

None __init__ (self)
 Constructs a eVision.EScratchDetectionParameters.
None __init__ (self, eVision.ESpotPolarity polarity, int threshold, int width, int length)
 Constructs a eVision.EScratchDetectionParameters.
None __init__ (self, eVision.ESpotPolarity Polarity)
None __init__ (self, eVision.ESpotPolarity Polarity, int Threshold)
None __init__ (self, eVision.ESpotPolarity Polarity, int Threshold, int NominalWidth)
None __init__ (self, eVision.EScratchDetectionParameters other)
eVision.ESpotPolarity Polarity (self)
 The scratch polarity (black, white or any) in eVision.ESpotPolarity.
 Polarity (self, eVision.ESpotPolarity value)
 The scratch polarity (black, white or any) in eVision.ESpotPolarity.
int Threshold (self)
 The threshold on the pixel intensity difference with the background.
 Threshold (self, int value)
 The threshold on the pixel intensity difference with the background.
int NominalWidth (self)
 The nominal scratch width.
 NominalWidth (self, int value)
 The nominal scratch width.
int MinLength (self)
 The minimum scratch length.
 MinLength (self, int value)
 The minimum scratch length.

Detailed Description

Used to store the scratch detection parameters.

See eVision.EParticleDetectionParameters for the particle detection parameters.

Remarks:

License(s): EasySpotDetector

Deprecated
Deprecated in version 26.6. Scheduled to be removed in version 27.6.

Constructor & Destructor Documentation

◆ __init__() [1/6]

None eVision.EScratchDetectionParameters.__init__ ( self)

◆ __init__() [2/6]

None eVision.EScratchDetectionParameters.__init__ ( self,
eVision.ESpotPolarity polarity,
int threshold,
int width,
int length )

Constructs a eVision.EScratchDetectionParameters.

Parameters
polarityThe particle polarity (black, white or any) in eVision.ESpotPolarity.
thresholdThe threshold on the pixel intensity difference with the background.
widthThe nominal scratch width.
lengthThe minimum scratch length.

◆ __init__() [3/6]

None eVision.EScratchDetectionParameters.__init__ ( self,
eVision.ESpotPolarity Polarity )
Parameters
PolarityThe scratch polarity (black, white or any) in eVision.ESpotPolarity. Default polarity is eVision.ESpotPolarity.Any.

◆ __init__() [4/6]

None eVision.EScratchDetectionParameters.__init__ ( self,
eVision.ESpotPolarity Polarity,
int Threshold )
Parameters
PolarityThe scratch polarity (black, white or any) in eVision.ESpotPolarity. Default polarity is eVision.ESpotPolarity.Any.
ThresholdThe threshold on the pixel intensity difference with the background. A low threshold (5-10) implies a sensitive detection, with possibly a lot of detected spots. A high threshold (30-40) implies a conservative detection, with possible a few or no spot detected. Default threshold is 20.

◆ __init__() [5/6]

None eVision.EScratchDetectionParameters.__init__ ( self,
eVision.ESpotPolarity Polarity,
int Threshold,
int NominalWidth )
Parameters
PolarityThe scratch polarity (black, white or any) in eVision.ESpotPolarity. Default polarity is eVision.ESpotPolarity.Any.
ThresholdThe threshold on the pixel intensity difference with the background. A low threshold (5-10) implies a sensitive detection, with possibly a lot of detected spots. A high threshold (30-40) implies a conservative detection, with possible a few or no spot detected. Default threshold is 20.
NominalWidthThe nominal scratch width. The width of the scratch must be roughtly equal to the nominal width. Default nominal width is 10.

◆ __init__() [6/6]

None eVision.EScratchDetectionParameters.__init__ ( self,
eVision.EScratchDetectionParameters other )
Parameters
otherOther instance

Member Function Documentation

◆ MinLength() [1/2]

int eVision.EScratchDetectionParameters.MinLength ( self)

The minimum scratch length.

The length of the scratch must be equal or larger than the minimum length. Default minimum size is 100.

◆ MinLength() [2/2]

eVision.EScratchDetectionParameters.MinLength ( self,
int value )

The minimum scratch length.

The length of the scratch must be equal or larger than the minimum length. Default minimum size is 100.

◆ NominalWidth() [1/2]

int eVision.EScratchDetectionParameters.NominalWidth ( self)

The nominal scratch width.

The width of the scratch must be roughtly equal to the nominal width. Default nominal width is 10.

◆ NominalWidth() [2/2]

eVision.EScratchDetectionParameters.NominalWidth ( self,
int value )

The nominal scratch width.

The width of the scratch must be roughtly equal to the nominal width. Default nominal width is 10.

◆ Polarity() [1/2]

eVision.ESpotPolarity eVision.EScratchDetectionParameters.Polarity ( self)

The scratch polarity (black, white or any) in eVision.ESpotPolarity.

Default polarity is eVision.ESpotPolarity.Any.

◆ Polarity() [2/2]

eVision.EScratchDetectionParameters.Polarity ( self,
eVision.ESpotPolarity value )

The scratch polarity (black, white or any) in eVision.ESpotPolarity.

Default polarity is eVision.ESpotPolarity.Any.

◆ Threshold() [1/2]

int eVision.EScratchDetectionParameters.Threshold ( self)

The threshold on the pixel intensity difference with the background.

A low threshold (5-10) implies a sensitive detection, with possibly a lot of detected spots. A high threshold (30-40) implies a conservative detection, with possible a few or no spot detected. Default threshold is 20.

◆ Threshold() [2/2]

eVision.EScratchDetectionParameters.Threshold ( self,
int value )

The threshold on the pixel intensity difference with the background.

A low threshold (5-10) implies a sensitive detection, with possibly a lot of detected spots. A high threshold (30-40) implies a conservative detection, with possible a few or no spot detected. Default threshold is 20.