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

#include <ucalibrate.h>

Public Member Functions

void clear ()
 
void clearNSEW ()
 
void GetDefaultOffset (int head, int MinSep, float *dx, float *dy)
 
float GetDist (UCalibrationComponent *other)
 
float GetMaxBlockDist (UCalibrationComponent *other, float *dx, float *dy)
 
bool IsInRightQuadrant (UCalibrationComponent *other, int head)
 
void PaintNeighbors (UImage *image, UPixel pix, bool halfWay, UCalibrationComponent *ccHits, float scale=1.0)
 
void SetRc (int r, int c, int head)
 

Public Attributes

int col
 
int filter
 
UCalibXYStat NSEW [8]
 
int row
 
float rx
 
float ry
 
int w
 
float x
 
float y
 

Detailed Description

Class to hold calibration points found in an image

Member Function Documentation

void UCalibrationComponent::clear ( void  )

Clear component

References UCalibXYStat::x, and UCalibXYStat::y.

void UCalibrationComponent::clearNSEW ( )

Clear relations to neighbors only

Clear relations to neighbors

References UCalibXYStat::clear().

void UCalibrationComponent::GetDefaultOffset ( int  head,
int  MinSep,
float *  dx,
float *  dy 
)

Get offset point, where neighbor in direction head most likely are found. returns position offset in dx and dy

Referenced by UCalibrationComponents::DoFindNSEWHead().

float UCalibrationComponent::GetDist ( UCalibrationComponent other)

Get distance to another component.

References UCalibXYStat::x, x, UCalibXYStat::y, and y.

float UCalibrationComponent::GetMaxBlockDist ( UCalibrationComponent other,
float *  dx,
float *  dy 
)

Get block distance to another component. as the greater of either x or y distance. Returns the distance

References absf(), UCalibXYStat::x, x, UCalibXYStat::y, and y.

Referenced by UCalibrationComponents::GetClosestItems().

bool UCalibrationComponent::IsInRightQuadrant ( UCalibrationComponent other,
int  head 
)

Is the other component in the right direction compared to this one? returns true if so.

References absf(), UCalibXYStat::x, x, UCalibXYStat::y, and y.

Referenced by UCalibrationComponents::DoFindNSEWHead().

void UCalibrationComponent::PaintNeighbors ( UImage image,
UPixel  pix,
bool  halfWay,
UCalibrationComponent ccHits,
float  scale = 1.0 
)
void UCalibrationComponent::SetRc ( int  r,
int  c,
int  head 
)

Set row and column number from the neighbor opposit head direction. e.g if heading is east then column is set to one more than c and row kept the same.

Referenced by UCalibrationComponents::SetRowColFromNeighbor().

Member Data Documentation

int UCalibrationComponent::col
int UCalibrationComponent::filter

Source of this component - wich filter

Referenced by UCalibrationComponents::EnumerateCalibrationDetections4().

UCalibXYStat UCalibrationComponent::NSEW[8]
int UCalibrationComponent::row
float UCalibrationComponent::rx

real position of this corner on chart in meter from bottom left.

Referenced by UCalibrationMark::copy(), UCalibrationComponents::DoFindCenterCross(), and UCalibrationComponents::SaveCalibCoordinates().

float UCalibrationComponent::ry
int UCalibrationComponent::w
float UCalibrationComponent::x
float UCalibrationComponent::y

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