AURobotServers  4
Public Member Functions | Public Attributes | List of all members
UIUVPixel Class Reference

#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
 

Detailed Description

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].

Constructor & Destructor Documentation

UIUVPixel::UIUVPixel ( )

Constructor

UIUVPixel::UIUVPixel ( UPixel pix)

Constructor from RGB pixel

References SetPix().

Member Function Documentation

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)

Set pixel from float version of an RGB pixel

References URRgb::b, URRgb::g, hue, i, URRgb::r, sat, u, and v.

Member Data Documentation

float UIUVPixel::hue

Referenced by SetPix().

float UIUVPixel::i
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().


The documentation for this class was generated from the following files: