AURobotServers
4
|
#include <ucommon.h>
Public Member Functions | |
float | colorDist (UIUVPixel *pix) |
void | SetPix (UPixel pix) |
void | SetPix (URRgb pix) |
UIUVPixel () | |
UIUVPixel (UPixel *pix) | |
Public Attributes | |
float | hue |
float | i |
float | sat |
float | u |
float | v |
Class for calculation on pixel in IHS and IUV format. All vaiables are in float in the range: Saturation (i): [0..1[, u and v: [-1..1] (approx), hue: -Pi..Pi, sat: [0..1].
UIUVPixel::UIUVPixel | ( | ) |
Constructor
float UIUVPixel::colorDist | ( | UIUVPixel * | pix | ) |
Color distance to this pixel black to white is 1
References i, sqr(), u, and v.
Referenced by UPixel::colorDistIHS().
void UIUVPixel::SetPix | ( | UPixel | pix | ) |
Set pixel from RGB pixel
References URRgb::b, URRgb::g, UPixel::p1, UPixel::p2, UPixel::p3, and URRgb::r.
Referenced by UIUVPixel().
void UIUVPixel::SetPix | ( | URRgb | pix | ) |
float UIUVPixel::hue |
Referenced by SetPix().
float UIUVPixel::i |
Referenced by colorDist(), convertToFilename(), SetPix(), strnlower(), and strnupper().
float UIUVPixel::sat |
Referenced by SetPix().
float UIUVPixel::u |
Referenced by colorDist(), SetPix(), and UPixel::tone().
float UIUVPixel::v |
Referenced by colorDist(), SetPix(), and UPixel::tone().