#include <vetFrameHSV.h>
Inheritance diagram for vetFrameHSV:

Public Types | |
| enum | ChannelHSV |
Public Member Functions | |
| vetFrameHSV () | |
| Default constructor, initialize height and width to 0. | |
| vetFrameHSV (unsigned int width, unsigned int height) | |
| Create an image with the given dimensions, allocates empty data. | |
| vetFrameHSV (vetFrameHSV &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| vetFrameHSV (vetFrameRGB96 &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| vetFrameHSV (vetFrameGrey &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| ~vetFrameHSV () | |
| Destructor currenly clear pixel data (array). | |
| VETRESULT | setWidth (unsigned int newWidth) |
| VETRESULT | setHeight (unsigned int newHeight) |
| void * | dump_buffer () |
| Read current buffer address. | |
| VETRESULT | reAllocCanvas (unsigned int w, unsigned int h) |
| unsigned int | getBpp () |
| Get current format's BPP (Bits per Pixel). | |
| VETRESULT | setBlack () |
| Initialize image (with current canvas) to black (min brightness). | |
| VETRESULT | setWhite () |
| Initialize image (with current canvas) to white (max brightness). | |
| VETRESULT | extractBrightness (unsigned char *buffer, unsigned int *size=NULL) |
| VETRESULT | setPixel (unsigned int x, unsigned int y, PixelHSV p) |
| Set pixel (x, y) to the specified value, conversion to PixelGrey is implemented. | |
| VETRESULT | setHSV (unsigned int x, unsigned int y, unsigned short int hue, unsigned char sat, unsigned char val) |
| Set pixel (x, y) to the specified values: Red, Green, Blue. | |
| VETRESULT | setChannel (unsigned int x, unsigned int y, ChannelHSV ch, unsigned int value) |
| Set pixel (x, y) to the specified values: Red, Green, Blue. | |
| VETRESULT | getPixel (unsigned int x, unsigned int y, PixelHSV &p) |
| Get pixel (x, y) value and store it to p. | |
| unsigned int | getChannel (unsigned int x, unsigned int y, ChannelHSV ch) |
| Get pixel's channel value (x, y). | |
| vetFrameHSV & | clearWith (PixelHSV &bg) |
| Clear all pixel to the specified value. | |
| vetFrameHSV & | clearChannel (ChannelHSV ch, unsigned int value=0) |
| Clear all pixel to the specified value in specified channel. | |
| vetFrameHSV & | copy (vetFrameHSV &img) |
| Copies all pixel data from img Throws an exception if images are of different size. | |
| vetFrameHSV & | operator= (vetFrameHSV &img) |
| Copies all pixel data from img using copy method. Throws an exception if images are of different size. | |
| vetFrameHSV & | operator+= (vetFrameHSV &img) |
| Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size. | |
| vetFrameHSV & | operator-= (vetFrameHSV &img) |
| Overload equals-sub (-=) operator for two images (pixel -= loop) Throws an exception if images are of different size. | |
| vetFrameHSV & | operator/= (vetFrameHSV &img) |
| Overload equals-div (-=) operator for two images (pixel /= loop) Throws an exception if images are of different size. | |
| vetFrameHSV & | operator *= (vetFrameHSV &img) |
| Overload equals-mul (-=) operator for two images (pixel *= loop) Throws an exception if images are of different size. | |
| vetFrameHSV & | operator>> (vetFrameRGB24 &img) |
| Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side. | |
| vetFrameHSV & | operator>> (vetFrameHSV &img) |
| Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side. | |
| vetFrameHSV & | operator>> (vetFrameRGB96 &img) |
| Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side. | |
| vetFrameHSV & | operator>> (vetFrameGrey &img) |
| Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side. | |
| void | operator<< (const vetFrameRGB24 &img) |
| Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor. | |
| void | operator<< (const vetFrameHSV &img) |
| Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor. | |
| void | operator<< (const vetFrameRGB96 &img) |
| Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor. | |
| void | operator<< (const vetFrameGrey &img) |
| Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor. | |
| VETFRAME_PROFILE | getProfile () |
| VETFRAME_CHANNEL_TYPE | getChannelType () |
| | |
| int | getFOURCC () |
| Get FOURCC code of current data format, visit http://www.fourcc.org for all codes. | |
Static Public Member Functions | |
| static void | convPixel_RGB32toHSV (const PixelRGB96 &, PixelHSV &) |
| Pixel conversion routines. | |
| static void | convPixel_HSVtoRGB32 (const PixelHSV &, PixelRGB96 &) |
| static void | convPixel_RGB24toHSV (const PixelRGB24 &, PixelHSV &) |
| static void | convPixel_HSVtoRGB24 (const PixelHSV &, PixelRGB24 &) |
| static void | convPixel_GREYtoHSV (const PixelGrey &, PixelHSV &) |
| static void | convPixel_HSVtoGREY (const PixelHSV &, PixelGrey &) |
Data Fields | |
| PixelHSV * | data |
The image is stored as an array of ints, each pixel spanning three ints (one for each of its red, green and blue values).
Definition at line 60 of file vetFrameHSV.h.
|
||||||||||||
|
Create an image with the given dimensions, allocates empty data.
Definition at line 82 of file vetFrameHSV.cpp. References data, DEBUG, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 28 of file vetFrameHSV.cpp. References data, DEBUG, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 47 of file vetFrameHSV.cpp. References data, DEBUG, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 64 of file vetFrameHSV.cpp. References data, DEBUG, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Destructor currenly clear pixel data (array). Destructor for vetFrameHSV class. Frees memory allocated to array: Definition at line 101 of file vetFrameHSV.cpp. |
|
||||||||||||
|
Clear all pixel to the specified value in specified channel.
Definition at line 299 of file vetFrameHSV.cpp. References data, DEBUG, vetFrame::height, PixelHSV::hue, INFO, PixelHSV::sat, PixelHSV::val, and vetFrame::width. |
|
|
Clear all pixel to the specified value.
Definition at line 283 of file vetFrameHSV.cpp. References data, DEBUGMSG, vetFrame::height, and vetFrame::width. |
|
||||||||||||
|
Convert RGB pixel to HSV pixel Definition at line 842 of file vetFrameHSV.cpp. References BLUE_COEF, GREEN_COEF, PixelHSV::hue, RED_COEF, PixelHSV::sat, and PixelHSV::val. Referenced by operator<<(). |
|
||||||||||||
|
Convert HSV pixel to RGB pixel Definition at line 896 of file vetFrameHSV.cpp. References BLUE_COEF, GREEN_COEF, PixelHSV::hue, RED_COEF, PixelHSV::sat, and PixelHSV::val. Referenced by operator>>(). |
|
||||||||||||
|
Convert HSV pixel to RGB pixel Definition at line 798 of file vetFrameHSV.cpp. References PixelHSV::hue, PixelHSV::sat, and PixelHSV::val. Referenced by operator>>(). |
|
||||||||||||
|
Convert HSV pixel to RGB pixel Definition at line 701 of file vetFrameHSV.cpp. References PixelHSV::hue, PixelHSV::sat, and PixelHSV::val. Referenced by operator>>(). |
|
||||||||||||
|
Convert RGB pixel to HSV pixel Definition at line 744 of file vetFrameHSV.cpp. References vetFrameRGB96::BLUE, PixelHSV::hue, PixelHSV::sat, and PixelHSV::val. Referenced by operator<<(). |
|
||||||||||||
|
Pixel conversion routines. Convert RGB pixel to HSV pixel Definition at line 647 of file vetFrameHSV.cpp. References vetFrameRGB96::BLUE, PixelHSV::hue, PixelHSV::sat, and PixelHSV::val. Referenced by operator<<(). |
|
|
Copies all pixel data from img Throws an exception if images are of different size.
Definition at line 354 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, and vetFrame::width. Referenced by operator=(). |
|
|
Read current buffer address.
Implements vetFrame. Definition at line 129 of file vetFrameHSV.h. References data. |
|
|
Get current format's BPP (Bits per Pixel).
Implements vetFrame. Definition at line 134 of file vetFrameHSV.h. |
|
||||||||||||||||
|
Get pixel's channel value (x, y).
Definition at line 258 of file vetFrameHSV.cpp. References data, vetFrame::height, PixelHSV::hue, PixelHSV::sat, PixelHSV::val, and vetFrame::width. |
|
|
Implements vetFrame. Definition at line 368 of file vetFrameHSV.h. |
|
|
Get FOURCC code of current data format, visit http://www.fourcc.org for all codes.
Implements vetFrame. Definition at line 370 of file vetFrameHSV.h. |
|
||||||||||||||||
|
Get pixel (x, y) value and store it to p.
Definition at line 238 of file vetFrameHSV.cpp. References data, vetFrame::height, VETRET_OK, and vetFrame::width. |
|
|
Implements vetFrame. Definition at line 367 of file vetFrameHSV.h. |
|
|
Overload equals-mul (-=) operator for two images (pixel *= loop) Throws an exception if images are of different size.
Definition at line 421 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, and vetFrame::width. |
|
|
Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size.
Definition at line 379 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, and vetFrame::width. |
|
|
Overload equals-sub (-=) operator for two images (pixel -= loop) Throws an exception if images are of different size.
Definition at line 393 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, and vetFrame::width. |
|
|
Overload equals-div (-=) operator for two images (pixel /= loop) Throws an exception if images are of different size.
Definition at line 407 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, and vetFrame::width. |
|
|
Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor.
Definition at line 615 of file vetFrameHSV.cpp. References convPixel_GREYtoHSV(), data, vetFrameGrey::data, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor.
Definition at line 591 of file vetFrameHSV.cpp. References convPixel_RGB32toHSV(), data, vetFrameRGB96::data, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor.
Definition at line 561 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Input operator, import standard VETLib frame formats, load image data, it's like a copy constructor.
Definition at line 538 of file vetFrameHSV.cpp. References convPixel_RGB24toHSV(), data, vetFrameRGB24::data, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Copies all pixel data from img using copy method. Throws an exception if images are of different size.
Definition at line 233 of file vetFrameHSV.h. References copy(). |
|
|
Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side.
Definition at line 519 of file vetFrameHSV.cpp. References convPixel_HSVtoGREY(), vetFrameGrey::data, data, vetFrame::height, INFO, vetFrameGrey::reAllocCanvas(), and vetFrame::width. |
|
|
Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side.
Definition at line 494 of file vetFrameHSV.cpp. References convPixel_HSVtoRGB32(), vetFrameRGB96::data, data, vetFrame::height, INFO, vetFrameRGB96::reAllocCanvas(), and vetFrame::width. |
|
|
Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side.
Definition at line 461 of file vetFrameHSV.cpp. References data, vetFrame::height, INFO, reAllocCanvas(), and vetFrame::width. |
|
|
Ouput operator, export to standard VETLib frame formats, export image data, it's like a copy constructor by parameter side.
Definition at line 436 of file vetFrameHSV.cpp. References convPixel_HSVtoRGB24(), vetFrameRGB24::data, data, vetFrame::height, INFO, vetFrameRGB24::reAllocCanvas(), and vetFrame::width. |
|
||||||||||||||||||||
|
Set pixel (x, y) to the specified values: Red, Green, Blue.
Definition at line 210 of file vetFrameHSV.cpp. References data, vetFrame::height, PixelHSV::hue, PixelHSV::sat, PixelHSV::val, VETRET_OK, VETRET_PARAM_ERR, and vetFrame::width. |
|
||||||||||||||||||||||||
|
Set pixel (x, y) to the specified values: Red, Green, Blue.
Definition at line 185 of file vetFrameHSV.cpp. References data, vetFrame::height, PixelHSV::hue, PixelHSV::sat, PixelHSV::val, VETRET_OK, and vetFrame::width. |
|
||||||||||||||||
|
Set pixel (x, y) to the specified value, conversion to PixelGrey is implemented.
Definition at line 167 of file vetFrameHSV.cpp. References data, vetFrame::height, VETRET_OK, and vetFrame::width. |
1.4.4