#include <PixelHSV.h>
Public Member Functions | |
| PixelHSV () | |
| PixelHSV (unsigned short int h, unsigned char s, unsigned char v) | |
| PixelHSV & | operator= (PixelHSV &p) |
| bool | operator== (PixelHSV &p) |
| bool | operator!= (PixelHSV &p) |
| PixelHSV & | operator+= (PixelHSV &p) |
| PixelHSV & | operator-= (PixelHSV &p) |
| PixelHSV & | operator *= (double k) |
| PixelHSV & | operator *= (PixelHSV &p) |
| PixelHSV & | operator/= (PixelHSV &p) |
Data Fields | |
| unsigned short int | hue |
| unsigned char | sat |
| unsigned char | val |
The pixel is stored as an array of three ints which can be access as seperate colour fields using the FieldSelector enum in the ImageHSV class.
Definition at line 30 of file PixelHSV.h.
|
|
The default constructor. This zero's the values of the Hue, Sat and Val colour fields. Definition at line 68 of file PixelHSV.h. |
|
||||||||||||||||
|
Create a pixel with the specified values. This constructor creates a new pixel with the Hue, Sat and Val values specified as arguments. Definition at line 78 of file PixelHSV.h. |
|
|
Overloaded multiplication operator. Multiply the fields of this pixel by a scalar value.
Definition at line 224 of file PixelHSV.h. |
|
|
Overloaded test for none equality This tests whether the pixel and the one specified are not equal i.e. they have at least one field in which their values differ.
Definition at line 169 of file PixelHSV.h. |
|
|
Overloaded addition operator. Add the values of the pixel specified to the fields of this pixel. Note NO checking that values are within range 0-255 is done.
Definition at line 187 of file PixelHSV.h. |
|
|
Overloaded subtraction(difference) operator. Assign the difference of the values of the pixel specified and this pixel to the fields of this pixel.
Definition at line 206 of file PixelHSV.h. |
|
|
Overloaded assignment operator. Assign the values of the pixel specified to the fields of this pixel.
Definition at line 96 of file PixelHSV.h. |
|
|
Overloaded equality operator. This tests whether this pixel and the one specified are equal i.e. have the same values for all fields.
Definition at line 149 of file PixelHSV.h. |
|
|
Outputs a pixel to the output stream This overlaoded operator inserts a representation of the pixel into the output stream (os) in the form '(h,s,v)' where h, s, v are the Hue, Sat and Val fields respectively.
Definition at line 58 of file PixelHSV.h. Referenced by vetFrameHSV::clearChannel(), vetFrameHSV::convPixel_GREYtoHSV(), vetFrameHSV::convPixel_HSVtoGREY(), vetFrameHSV::convPixel_HSVtoRGB24(), vetFrameHSV::convPixel_HSVtoRGB32(), vetFrameHSV::convPixel_RGB24toHSV(), vetFrameHSV::convPixel_RGB32toHSV(), vetFrameHSV::getChannel(), vetNoiseGenerator::getRandomPixelHSV(), operator *=(), operator!=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), PixelHSV(), vetFrameHSV::setChannel(), and vetFrameHSV::setHSV(). |
1.4.4