Pixel

Description

Represents single element of an Image Pixels in Adaptive Vision Library do not correspond to any specific color model.

	struct Pixel
	{
		float X( void ) const;
		float Y( void ) const;
		float Z( void ) const;
		float W( void ) const;
	};

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

  • Real X - First component, displayed as Red
  • Real Y - Second component, displayed as Green
  • Real Z - Third component, displayed as Blue
  • Real W - Fourth component
struct Pixel
{
	Real	X;
	Real	Y;
	Real	Z;
	Real	W;


	Real X( void ) const	{ return X;	};
	Real Y( void ) const	{ return Y;	};
	Real Z( void ) const	{ return Z;	};
	Real W( void ) const	{ return W;	};

	bool operator == ( const avl::Pixel& rhs ) const
	{
		return X == rhs.X && 
			Y == rhs.Y && 
			Z == rhs.Z && 
			W == rhs.W;
	}

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

};