IntensityThresholdParams
Description
This structure contains parameters for thresholding an image.
Structure fields and default values (if defined) are described below:
- real MinIntensity = 128 - Minimal intensity of a pixel that is considered foreground
- real MaxIntensity - Maximal intensity of a pixel that is considered foreground
- real Hysteresis - Defines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels
struct IntensityThresholdParams
{
real MinIntensity;
real MaxIntensity;
real Hysteresis;
explicit IntensityThresholdParams
(
real MinIntensity_ = 128
) :
MinIntensity(MinIntensity_)
{}
real MinIntensity( void ) const { return MinIntensity; };
real MaxIntensity( void ) const { return MaxIntensity; };
real Hysteresis( void ) const { return Hysteresis; };
bool operator == ( const avl::IntensityThresholdParams& rhs ) const
{
return MinIntensity == rhs.MinIntensity &&
MaxIntensity == rhs.MaxIntensity && Hysteresis == rhs.Hysteresis
;
}
bool operator != ( const avl::IntensityThresholdParams& rhs ) const
{
return !(operator==(rhs));
}
};
