Extremum2D

Description

Represents extremum found in image.

Structure fields and default values (if defined) are described below:

struct Extremum2D
{
	Point2D		Point;
	Real		Value;
	Polarity	Polarity;

	explicit Extremum2D
	(
		Polarity Polarity_ = Any 
	) :
		 Polarity(Polarity_) 
	{}

	Point2D Point() const		{ return Point;		};
	Real Value() const			{ return Value;		};
	Polarity Polarity() const	{ return Polarity;	};

	bool operator == ( const avl::Extremum2D& rhs ) const
	{
		return Point == rhs.Point && 
			Value == rhs.Value && 
			Polarity == rhs.Polarity;
	}

	bool operator != ( const avl::Extremum2D& rhs ) const
	{
		return !(operator==(rhs));
	}

};