CVImageRGBFloat Class Reference#include <CVImageRGBFloat.h>
Inheritance diagram for CVImageRGBFloat:
List of all members.
Detailed Description
CVImageRGBFloat is a floating point color image class derived from CVImage Pixels are 32-bit per channel floats, and are stored as triplets in R,G,B order.
See CVImage.h for general documentation.
- See also:
- CVImage, CVImageGrey, CVImageRGB24
- RCSfile
- CVImageRGBFloat.h,v
- Date
- 2004/02/08 23:47:39
- Revision
- 1.1.1.1
- Author
- mikeellison
Definition at line 66 of file CVImageRGBFloat.h. Public Member Functions
Protected Member Functions
Private Attributes
Constructor & Destructor Documentation
| CVImageRGBFloat::CVImageRGBFloat |
( |
|
) |
[protected] |
|
Member Function Documentation
| int CVImageRGBFloat::GetBytesPerPixel |
( |
|
) |
const [virtual] |
|
|
|
GetBytesPerPixel retrieves the number of bytes per pixel. Note that pixel can be in floating point or integer format, depending on the image type.
- Returns:
- int - bytes per pixel
Implements CVImage.
Definition at line 87 of file CVImageRGBFloat.cpp. |
| CVRES CVImageRGBFloat::GetMaxPixelValue |
( |
float & |
maxValue |
) |
const [virtual] |
|
| int CVImageRGBFloat::GetNumChannels |
( |
|
) |
const [virtual] |
|
|
|
GetNumChannels retrieves the number of channels per pixel. This is one in greyscale, 3 in RGB, and 4 in RGBA
- Returns:
- int - number of channels per pixel.
- See also:
- GetBytesPerPixel()
Implements CVImage.
Definition at line 78 of file CVImageRGBFloat.cpp. |
| CVRES CVImageRGBFloat::GetPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
float & |
r, |
|
|
float & |
g, |
|
|
float & |
b |
|
) |
const [virtual] |
|
|
|
GetPixel() retrieves the red, green, and blue values for a specified pixel as floating points.
This is for convenience and prototyping - for high-speed image processing you'll need to work more directly with the image buffer.
- Parameters:
-
| x | - x position within the image of the pixel |
| y | - y position within the image of the pixel |
| r | - receives the red value of the pixel |
| g | - receives the green value of the pixel |
| b | - receives the blue value of the pixel |
- Returns:
- CVRES result code. CVRES_SUCCESS on success.
- See also:
- SetPixel()
Implements CVImage.
Definition at line 159 of file CVImageRGBFloat.cpp.
References CVImage::AbsWidth(), CVAssert, CVRES, CVRES_IMAGE_EMPTY_ERR, CVRES_IMAGE_OUT_OF_RANGE, CVRES_SUCCESS, CVImage::fData, CVImage::fHeight, CVImage::fWidth, CVImage::XOffsetAbs(), and CVImage::YOffsetAbs(). |
| const char * CVImageRGBFloat::GetPNMExtension |
( |
|
) |
const [virtual] |
|
| char CVImageRGBFloat::GetPNMMagicVal |
( |
|
) |
const [virtual] |
|
| CVRES CVImageRGBFloat::SetFromWin32Bmp |
( |
const BITMAPINFOHEADER * |
bmih, |
|
|
const unsigned char * |
data |
|
) |
[virtual] |
|
| CVRES CVImageRGBFloat::SetPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
[virtual] |
|
|
|
SetPixel() sets the red, green, and blue pixel values for a pixel
This is for convenience and prototyping - for high-speed image processing you'll need to work more directly with the image buffer.
- Parameters:
-
| x | - x position within the image of the pixel |
| y | - y position within the image of the pixel |
| r | - receives the red value of the pixel |
| g | - receives the green value of the pixel |
| b | - receives the blue value of the pixel |
- Returns:
- CVRES result code. CVRES_SUCCESS on success.
- See also:
- GetPixel()
Implements CVImage.
Definition at line 227 of file CVImageRGBFloat.cpp.
References CVImage::AbsWidth(), CVAssert, CVRES, CVRES_IMAGE_EMPTY_ERR, CVRES_IMAGE_OUT_OF_RANGE, CVRES_SUCCESS, CVImage::fData, CVImage::fHeight, CVImage::fWidth, CVImage::XOffsetAbs(), and CVImage::YOffsetAbs(). |
Member Data Documentation
The documentation for this class was generated from the following files:
|