Stripe1D

Description

Represents stripes found by 1D Edge Detection functions.

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

struct Stripe1D
{
	Point2D		Point1;
	Point2D		Point2;
	float		Width;
	Real		Magnitude;
	Polarity	Polarity;

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

	Point2D Point1( void ) const	{ return Point1;	};
	Point2D Point2( void ) const	{ return Point2;	};
	float Width( void ) const		{ return Width;		};
	Real Magnitude( void ) const	{ return Magnitude;	};
	Polarity Polarity( void ) const	{ return Polarity;	};

	bool operator == ( const avl::Stripe1D& rhs ) const
	{
		return Point1 == rhs.Point1 && 
			Point2 == rhs.Point2 && 
			Width == rhs.Width && 
			Magnitude == rhs.Magnitude && 
			Polarity == rhs.Polarity;
	}

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

};