IntensityThresholdParams
Description
This structure contains parameters for thresholding an image.Structure fields and default values (if defined) are described below:
- float MinIntensity = 128 - Minimal intensity of a pixel that is considered foreground
- float MaxIntensity - Maximal intensity of a pixel that is considered foreground
- float Hysteresis - Defines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels
struct IntensityThresholdParams
{
float MinIntensity;
float MaxIntensity;
float Hysteresis;
explicit IntensityThresholdParams
(
float MinIntensity_ = 128
) :
MinIntensity(MinIntensity_)
{}
float MinIntensity() const { return MinIntensity; };
float MaxIntensity() const { return MaxIntensity; };
float Hysteresis() 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));
}
};
