User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
YUVValueC::YUVValueC(void)
YUVValueC::YUVValueC(RealT,RealT,RealT)
YUVValueC::YUVValueC(const ByteYUVValueC &)
YUVValueC::YUVValueC(const RGBPointC &)
YUVValueC::YUVValueC(const Point3dC &)
YUVValueC::Y(void) const
YUVValueC::U(void) const
YUVValueC::V(void) const
YUVValueC::Y(void)
YUVValueC::U(void)
YUVValueC::V(void)
YUVValueC::Cut(void) const
YUVValueC::CutMaximum(void)
YUVValueC::CutMinimum(void)
YUVValueC::operator+=(const YUVValueC &)
YUVValueC::operator-=(const YUVValueC &)
Point3dC::Point3dC(SizeT)
Point3dC::operator=(const Point3dC &)
Point3dC::operator[](IndexT) const
Point3dC::operator[](IndexT)
Point3dC::X(void)
Point3dC::Y(void)
Point3dC::Z(void)
Point3dC::X(void) const
Point3dC::Y(void) const
Point3dC::Z(void) const
Point3dC::Point(void) const
Point3dC::Point(void)
Point3dC::operator==(const Point3dC &) const
Point3dC::operator!=(const Point3dC &) const
Point3dC::operator>(const Point3dC &) const
Point3dC::OneBigger(const Point3dC &) const
Point3dC::SetZero(void)
Point3dC::Set(const Point3dC &)
Point3dC::Set(const CoordT,const CoordT,const CoordT)
Point3dC::SetMinimum(const Point3dC &)
Point3dC::SetMaximum(const Point3dC &)
Point3dC::MinIndex(void) const
Point3dC::MaxIndex(void) const
Point3dC::AbsMinIndex(void) const
Point3dC::AbsMaxIndex(void) const
Point3dC::Min(void) const
Point3dC::Max(void) const
Point3dC::operator+=(const Point3dC &)
Point3dC::operator-=(const Point3dC &)
Point3dC::operator*=(const Point3dC &)
Point3dC::operator/=(const Point3dC &)
Point3dC::operator*=(const RealT)
Point3dC::operator/=(const RealT)
Point3dC::operator+(const Point3dC &) const
Point3dC::operator-(const Point3dC &) const
Point3dC::operator*(const Point3dC &) const
Point3dC::operator/(const Point3dC &) const
Point3dC::operator*(const RealT) const
Point3dC::operator/(const RealT) const
Point3dC::operator+(const Vector3dC &) const
Point3dC::operator&(const Point3dC &) const
Point3dC::Translation(const Point3dC &) const
Point3dC::SqrEuclidDistance(const Point3dC &) const
Point3dC::EuclidDistance(const Point3dC &) const
Point3dC::EDistanceFromOrigin(void) const
Point3dC::CosAngle(const Point3dC &,const Point3dC &) const
Point3dC::Angle(const Point3dC &,const Point3dC &) const
Point3dC::AngleOrigin(const Point3dC &) const
Point3dC::MidPoint(const Point3dC &) const
Point3dC::Center(const Point3dC &) const
Point3dC::N(void) const
Point3dC::AbsDistance(const Point3dC &) const
Point3dC::MahalanobisDistance(const Point3dC &,const Matrix3d3C &)
Point3dC::Sum(void) const
Point3dC::SumAbs(void) const
Point3dC::Sqrt(void)
Point3dC::Abs(void)
Point3dC::Normalize(void)
Point3dC::NormalizeSum(void)
Point3dC::MakeUnit(const IndexT)
Point3dC::OrthoProjectionInto(const Line3dPVC &) const
Point3dC::OrthoProjectionTo(const PlanePVV3dC &) const
Point3dC::IsOutside(const PlaneABCD3dC &) const
Point3dC::IsInside(const PlaneABCD3dC &) const
Point3dC::FixAlmostZero(void)
Point3dC::SetZeroDistance(RealT)
Point3dC::IsAlmostZero(RealT)
Point3dC::SetRelZero(RealT)
Point3dC::IsRelZero(RealT)
YUVValueC
 
include "amma/YUVValue.hh"
User Level:Default
Library:Mpxl
Example: doNumClassComb.cc
Section:Image.Pixel Representations
In Scope:std

Comments:
======================================================================== ========= YUVValueC =================================================== ========================================================================

Parent Classes: Methods:
YUVValueC()
Constructs an empty object. The color can be arbitrary.

YUVValueC(RealT y,RealT u,RealT v)
Constructs YUV object from the values 'y', 'u', and 'v'.

YUVValueC(const ByteYUVValueC & yuv)
Converts byte YUV color 'yuv' into real color.

YUVValueC(const RGBPointC & rgb)
Converts color coordinates from RGB space into YUV space.

YUVValueC(const Point3dC & valueYUV)
YUV color is created from the values of the general 3D point.

const RealT & Y() const
Access to the constant Y component.

const RealT & U() const
Access to the constant U component.

const RealT & V() const
Access to the constant V component.

RealT & Y()
Access to the Y component.

RealT & U()
Access to the U component.

RealT & V()
Access to the V component.

ByteYUVValueC Cut() const
Conversion into the color which is represented by BYTE values. Values outside byte range are truncated.

YUVValueC & CutMaximum()
If any color component is bigger than (255, 127, 127) it is truncated.

YUVValueC & CutMinimum()
If any color component is smaller than (0, -127, -127) it is truncated.

const YUVValueC & operator+=(const YUVValueC & yuv)
Adds 'yuv' color to this color.

const YUVValueC & operator-=(const YUVValueC & yuv)
Subtracts 'yuv' color from this color.

#include "amma/Point3d.hh"
explicit Point3dC(SizeT dim)
Creates the point (0.0, 0.0, 0.0).
For compability with N-D points.

const Point3dC & operator=(const Point3dC & p)
Assigment. Access to the object --------------------

const CoordT & operator[](IndexT i) const
Access to the i-th constant coordinate.

CoordT & operator[](IndexT i)
Access to the i-th coordinate.

CoordT & X()
Access to the first coordinate.

CoordT & Y()
Access to the second coordinate.

CoordT & Z()
Access to the third coordinate.

const CoordT & X() const
Access to the first constant coordinate.

const CoordT & Y() const
Access to the second constant coordinate.

const CoordT & Z() const
Access to the third constant coordinate.

const Point3dC & Point() const
Access to the constant point.

Point3dC & Point()
Access to the point. Logical operators with points -----------------------------

BooleanT operator==(const Point3dC & point) const
Returns TRUE if 2 points are the same point. Two points are claimed to be same iff their relative distance error is small (under 'relZero' threshold). If both points are close to the origin of the coordinate system, their absolute distance error is compared to 'zeroDistance'.

BooleanT operator!=(const Point3dC & point) const
Returns TRUE if 2 points are different. 2 points are different iff they are not equal in the sense of the operator '=='.

BooleanT operator>(const Point3dC & point) const
Returns TRUE if all coordinates are bigger then the coordinates of the point.

BooleanT OneBigger(const Point3dC & point) const
Returns TRUE if one coordinate is bigger then the related one of the point. Setting of the point --------------------

Point3dC & SetZero()
Sets all coordinates to be 0.0.

void Set(const Point3dC & point)
Sets coordinates according to the values of 'point'.

void Set(const CoordT xCoor,const CoordT yCoor,const CoordT zCoor)
Sets the point to the new coordinates.

Point3dC & SetMinimum(const Point3dC & point)
Sets the point coordinates to minimal value from both points.

Point3dC & SetMaximum(const Point3dC & point)
Sets the point coordinates to maximal value from both points. Information about extrems -------------------------

IndexT MinIndex() const
Returns the index of the minimum value.

IndexT MaxIndex() const
Returns the index of the maximum value.

IndexT AbsMinIndex() const
Returns the index of the minimum coordinate in absolute value.

IndexT AbsMaxIndex() const
Returns the index of the maximum coordinate in absolute value.

CoordT Min() const
Returns the minimum coordinate.

CoordT Max() const
Returns the maximum coordinate. Arithmetical operations -----------------------

const Point3dC & operator+=(const Point3dC & point)
Adds the point.

const Point3dC & operator-=(const Point3dC & point)
Subtracts the point.

const Point3dC & operator*=(const Point3dC & point)
Multiplies items by point items.

const Point3dC & operator/=(const Point3dC & point)
Divides items by point items.

const Point3dC & operator*=(const RealT alpha)
Multiplies items by 'alpha'.

const Point3dC & operator/=(const RealT alpha)
Divides items by 'alpha'.

Point3dC operator+(const Point3dC & v) const
Adds 2 points.

Vector3dC operator-(const Point3dC & v) const
Returns the difference between 2 points.

Point3dC operator*(const Point3dC & v) const
Returns the points which coordinates are results of multiplication of this point and 'v' points item by item.

Point3dC operator/(const Point3dC & v) const
Returns the points which coordinates are results of division of this point and 'v' points item by item.

Point3dC operator*(const RealT alpha) const
Returns the points which coordinates are these coordinates multiplied by 'alpha'.

Point3dC operator/(const RealT alpha) const
Returns the points which coordinates are these coordinates divided by 'alpha'.

Point3dC operator+(const Vector3dC & v) const
Returns the point = 'this point' + v;

RealT operator&(const Point3dC & p) const
Returns the sum X()*p.X() + Y()*p.Y() + Z()*p.Z(). In 3 dimensional Euclidian vector space the result is equivalent to dot product of 2 vectors. Euclidian geometry ------------------

Point3dC Translation(const Point3dC & newOrigin) const
Returns the point with coordinates related to the new origin 'newOrigin'.

RealT SqrEuclidDistance(const Point3dC & point) const
Returns the square of Euclid distance between this point and 'point'.

RealT EuclidDistance(const Point3dC & point) const
Returns the Euclid distance between this point and point.

RealT EDistanceFromOrigin() const
Returns the Euclid distance of this point from the coordinate origin.

CosAngleT CosAngle(const Point3dC & m,const Point3dC & b) const
Returns the cosinus of the angle (this point, m, b).

AngleT Angle(const Point3dC & m,const Point3dC & b) const
Returns the angle (this point, m, b).

AngleT AngleOrigin(const Point3dC & p) const
Returns the angle in rad between points 'this point', (0,0,0), and the point 'p'.

Point3dC MidPoint(const Point3dC & p) const
Returns the point which is in the middle of this point and the point 'p'.

Point3dC Center(const Point3dC & point) const
Returns the point which is in the middle of both points. Useful functions with points ----------------------------

SizeT N() const
Returns the number of coordinates of this point.

RealT AbsDistance(const Point3dC & point) const
Returns the block distance between this point and 'point'.

RealT MahalanobisDistance(const Point3dC & mean,const Matrix3d3C & invCov)
Returns the Mahalanobis distance from the 'mean'. The 'invCov' is the inversion of the covariance matrix.

CoordT Sum() const
Returns the sum of coordinates.

CoordT SumAbs() const
Returns the sum of absolute value of coordinates.

Point3dC & Sqrt()
Changes all coordinates into their square root values.

Point3dC & Abs()
Changes all coordinates into their absolute values.

Point3dC & Normalize()
Scales the coordinates of the point to have the distance from the origin equal to 1. The point is supposed to be different from the origin.

Point3dC & NormalizeSum()
Scales the coordinates of the point to have unit sum. The point is supposed to be different from the origin.

Point3dC & MakeUnit(const IndexT i)
Scales the coordinates of the point that the i-th coordinate will be equal to 1. The range of the index i is not checked. Relationship with a line ------------------------

Point3dC OrthoProjectionInto(const Line3dPVC & l) const
Returns the orthogonal projection of the point into the line 'l'. Relationship with a plane -------------------------

Point3dC OrthoProjectionTo(const PlanePVV3dC & plane) const
Orthogonal projection of the point into the plane

BooleanT IsOutside(const PlaneABCD3dC & plane) const
Returns TRUE if the point is on the side of the plane where the normal of the plane points to.

BooleanT IsInside(const PlaneABCD3dC & plane) const
Returns TRUE if the point is on the side of the plane where the normal of the plane does not point to. Computational precision -----------------------

void FixAlmostZero()
If the absolute value of a coordinate is smaller than zoroDistance the function sets the coordinate to be zero.

RealT SetZeroDistance(RealT zero)
Sets the precision of test of zero distance of points. The function returns the previous value.

BooleanT IsAlmostZero(RealT a)
Returns TRUE if 'a' is smaller or equal to zeroDistance.

RealT SetRelZero(RealT zero)
Sets the precision of the relative error test. The function returns the previous value.

BooleanT IsRelZero(RealT a)
Returns TRUE if 'a' is smaller than or equal to 'relZero'.


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001