Public Member Functions | Private Attributes
ConnectedComponent Class Reference

This class stores data of a connected component. More...

#include <ConnectedComponent.h>

List of all members.

Public Member Functions

 ConnectedComponent ()
 ConnectedComponent (int pi_labelId, int pi_MinX, int pi_MinY, int pi_MaxX, int pi_MaxY, double pi_CogX, double pi_CogY, int pi_SegmentSize=0)
double getCogX () const
double getCogY () const
unsigned getLabelId () const
int getMaxX () const
int getMaxY () const
int getMinX () const
int getMinY () const
int getSegmentSize () const
void setCOG (double pi_CogX, double pi_CogY)
void setMaxCoordinates (int pi_MaxX, int pi_MaxY)
void setMinCoordinates (int pi_MinX, int pi_MinY)
void setSegmentSize (int pi_SegmentSize)
 ~ConnectedComponent ()

Private Attributes

double m_CogX
double m_CogY
unsigned m_LabelId
int m_MaxX
int m_MaxY
int m_MinX
int m_MinY
int m_SegmentSize

Detailed Description

This class stores data of a connected component.

Author:
Johannes Pellenz

Definition at line 26 of file ConnectedComponent.h.


Constructor & Destructor Documentation

Default constructor. Sets all members to 0.

Definition at line 33 of file ConnectedComponent.h.

ConnectedComponent::ConnectedComponent ( int  pi_labelId,
int  pi_MinX,
int  pi_MinY,
int  pi_MaxX,
int  pi_MaxY,
double  pi_CogX,
double  pi_CogY,
int  pi_SegmentSize = 0 
) [inline]

Constructor

Parameters:
pi_labelIdId of the label this component represents (0 = invalid)
pi_MinXThe minimal x-coordinate of bounding-box
pi_MinYThe minimal y-coordinate of bounding-box
pi_MaxXThe maximal x-coordinate of bounding-box
pi_MaxYThe maximal y-coordinate of bounding-box
pi_CogXThe x-coordinate of the center of gravity
pi_CogYThe y-coordinate of the center of gravity
pi_SegmentSizeThe size of the found segment in pixels

Definition at line 57 of file ConnectedComponent.h.

Destruktor

Definition at line 75 of file ConnectedComponent.h.


Member Function Documentation

double ConnectedComponent::getCogX ( ) const [inline]

Definition at line 124 of file ConnectedComponent.h.

double ConnectedComponent::getCogY ( ) const [inline]

Definition at line 125 of file ConnectedComponent.h.

unsigned ConnectedComponent::getLabelId ( ) const [inline]

Definition at line 127 of file ConnectedComponent.h.

int ConnectedComponent::getMaxX ( ) const [inline]

Definition at line 122 of file ConnectedComponent.h.

int ConnectedComponent::getMaxY ( ) const [inline]

Definition at line 123 of file ConnectedComponent.h.

int ConnectedComponent::getMinX ( ) const [inline]

get Methods

Definition at line 120 of file ConnectedComponent.h.

int ConnectedComponent::getMinY ( ) const [inline]

Definition at line 121 of file ConnectedComponent.h.

int ConnectedComponent::getSegmentSize ( ) const [inline]

Definition at line 126 of file ConnectedComponent.h.

void ConnectedComponent::setCOG ( double  pi_CogX,
double  pi_CogY 
) [inline]

Sets coordinates of the center of gravity

Definition at line 103 of file ConnectedComponent.h.

void ConnectedComponent::setMaxCoordinates ( int  pi_MaxX,
int  pi_MaxY 
) [inline]

Sets coordinates of lower right corner

Parameters:
pi_MaxXThe maximal x-coordinate of bounding-box
pi_MaxYThe maximal y-coordinate of bounding-box

Definition at line 94 of file ConnectedComponent.h.

void ConnectedComponent::setMinCoordinates ( int  pi_MinX,
int  pi_MinY 
) [inline]

Sets coordinates of upper left corner

Parameters:
pi_MinXThe minimal x-coordinate of bounding-box
pi_MinYThe minimal y-coordinate of bounding-box

Definition at line 83 of file ConnectedComponent.h.

void ConnectedComponent::setSegmentSize ( int  pi_SegmentSize) [inline]
Parameters:
pi_SegmentSizeSize of the segment in pixels

Definition at line 112 of file ConnectedComponent.h.


Member Data Documentation

double ConnectedComponent::m_CogX [private]

Center of gravity, x coordinate (sub pixel accuracy)

Definition at line 149 of file ConnectedComponent.h.

double ConnectedComponent::m_CogY [private]

Center of gravity, y coordinate (sub pixel accuracy)

Definition at line 153 of file ConnectedComponent.h.

unsigned ConnectedComponent::m_LabelId [private]

Definition at line 159 of file ConnectedComponent.h.

Bounding box, lower right x coordinate

Definition at line 141 of file ConnectedComponent.h.

Bounding box, lower right y coordinate

Definition at line 145 of file ConnectedComponent.h.

Bounding box, upper left x coordinate

Definition at line 133 of file ConnectedComponent.h.

Bounding box, upper left y coordinate

Definition at line 137 of file ConnectedComponent.h.

Size of the segment in pixels

Definition at line 157 of file ConnectedComponent.h.


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


or_libs
Author(s): raphael
autogenerated on Mon Oct 6 2014 02:53:18