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

Public Member Functions

void clearCells ()
 clear all patches - ready for height analysis More...
 
void doPatchAnalysis (UServerInMsg *msg, UImg3Dpoints *cloud3d, UPlane gndPlane, int debugtype)
 
void heightAnalysis (UPlane gndPlane)
 make height analysis More...
 
void makeCells ()
 
void paintDebugGrid (UImage *img)
 
void paintDebugValue (UImage *img, int membership)
 
void patchEvaluation ()
 
void saveMatlabScript ()
 
void setCellSize (int rows, int cols)
 
void setFuzzyEvaluator (UPatchTypeSets *evaluator)
 set the fuzzy set evaluator More...
 
void setImage (UImage *src, UImage *debug)
 set source color image More...
 
 UGroundPatches ()
 constructor More...
 
 ~UGroundPatches ()
 destructor More...
 

Protected Attributes

int cellh
 
int cellw
 
UImg3Dpointscloud
 
int colCnt
 
UPatchTypeSetsfzeval
 fuzzy set evaluator More...
 
UImageimgDbg
 
UImageimgSrc
 
UGroundPatch ** patches
 
int patchesCnt
 
int rowCnt
 

Detailed Description

Class tahat holds the result of patch analysis

Constructor & Destructor Documentation

UGroundPatches::UGroundPatches ( )
inline

constructor

UGroundPatches::~UGroundPatches ( )
inline

destructor

Member Function Documentation

void UGroundPatches::clearCells ( )
inline

clear all patches - ready for height analysis

References UGradeSet::clear().

void UGroundPatches::doPatchAnalysis ( UServerInMsg msg,
UImg3Dpoints cloud3d,
UPlane  gndPlane,
int  debugtype 
)
inline

Start patch analysis grid size has to be set first (cellW and cellH)

References UGroundPatch::colorAnalysis(), USmlTagIn::getAttBool(), and UServerInMsg::tag.

void UGroundPatches::heightAnalysis ( UPlane  gndPlane)
inline
void UGroundPatches::makeCells ( )
inline

make cell array for this image and celle size

void UGroundPatches::paintDebugGrid ( UImage img)
inline

paint debug grid in source image

References UImage::cvArr(), UImage::height(), and UImage::width().

void UGroundPatches::paintDebugValue ( UImage img,
int  membership 
)
inline

paint debug grid in source image

References UImage::cvArr(), UGroundPatch::surfaceType, and UGroundPatch::typeMembership.

void UGroundPatches::patchEvaluation ( )
inline

Fuzzy patch type evaluator function. Based on measured attribute values (height, green and red values) The result is saved in the patch.

References UGroundPatch::evaluatePatchType(), UFuncGndAna::patchTypeCnt, and UGroundPatch::surfaceType.

void UGroundPatches::saveMatlabScript ( )
inline
void UGroundPatches::setCellSize ( int  rows,
int  cols 
)
inline

Set size of patch cells in pixels

References rows.

void UGroundPatches::setFuzzyEvaluator ( UPatchTypeSets evaluator)
inline

set the fuzzy set evaluator

void UGroundPatches::setImage ( UImage src,
UImage debug 
)
inline

set source color image

Member Data Documentation

int UGroundPatches::cellh
protected
int UGroundPatches::cellw
protected
UImg3Dpoints* UGroundPatches::cloud
protected
int UGroundPatches::colCnt
protected
UPatchTypeSets* UGroundPatches::fzeval
protected

fuzzy set evaluator

UImage* UGroundPatches::imgDbg
protected
UImage* UGroundPatches::imgSrc
protected
UGroundPatch** UGroundPatches::patches
protected
int UGroundPatches::patchesCnt
protected
int UGroundPatches::rowCnt
protected

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