Blob contour class (in crack code) More...
#include <BlobContour.h>
Public Member Functions | |
void | AddChainCode (t_chainCode code) |
Add chain code to contour. | |
CBlobContour () | |
Constructors. | |
CBlobContour (CvPoint startPoint, CvMemStorage *storage) | |
CBlobContour (CBlobContour *source) | |
Copy constructor. | |
t_chainCodeList | GetChainCode () |
Return freeman chain coded contour. | |
t_chainCodeList | GetContourPoints () |
Return all contour points. | |
bool | IsEmpty () |
CBlobContour & | operator= (const CBlobContour &source) |
Assigment operator. | |
~CBlobContour () | |
Protected Member Functions | |
double | GetArea () |
Computes area from contour. | |
double | GetMoment (int p, int q) |
Get contour moment (p,q up to MAX_CALCULATED_MOMENTS) | |
double | GetPerimeter () |
Computes perimeter from contour. | |
CvPoint | GetStartPoint () const |
void | ResetChainCode () |
Clears chain code contour. | |
Protected Attributes | |
t_chainCodeList | m_contour |
Crack code list. | |
Private Attributes | |
double | m_area |
Computed area from contour. | |
t_PointList | m_contourPoints |
All points from the contour. | |
CvMoments | m_moments |
Computed moments from contour. | |
CvMemStorage * | m_parentStorage |
Pointer to storage. | |
double | m_perimeter |
Computed perimeter from contour. | |
CvPoint | m_startPoint |
Starting point of the contour. | |
Friends | |
class | CBlob |
Blob contour class (in crack code)
Definition at line 23 of file BlobContour.h.
Constructors.
Definition at line 4 of file BlobContour.cpp.
CBlobContour::CBlobContour | ( | CvPoint | startPoint, |
CvMemStorage * | storage | ||
) |
Definition at line 15 of file BlobContour.cpp.
CBlobContour::CBlobContour | ( | CBlobContour * | source | ) |
Copy constructor.
Definition at line 36 of file BlobContour.cpp.
Definition at line 44 of file BlobContour.cpp.
void CBlobContour::AddChainCode | ( | t_chainCode | chaincode | ) |
Add chain code to contour.
Definition at line 99 of file BlobContour.cpp.
double CBlobContour::GetArea | ( | ) | [protected] |
Computes area from contour.
Definition at line 163 of file BlobContour.cpp.
t_chainCodeList CBlobContour::GetChainCode | ( | ) | [inline] |
Return freeman chain coded contour.
Definition at line 42 of file BlobContour.h.
Return all contour points.
Calculate contour points from crack codes.
Definition at line 203 of file BlobContour.cpp.
double CBlobContour::GetMoment | ( | int | p, |
int | q | ||
) | [protected] |
Get contour moment (p,q up to MAX_CALCULATED_MOMENTS)
Definition at line 180 of file BlobContour.cpp.
double CBlobContour::GetPerimeter | ( | ) | [protected] |
Computes perimeter from contour.
Definition at line 133 of file BlobContour.cpp.
CvPoint CBlobContour::GetStartPoint | ( | ) | const [inline, protected] |
Definition at line 57 of file BlobContour.h.
bool CBlobContour::IsEmpty | ( | ) | [inline] |
Definition at line 47 of file BlobContour.h.
CBlobContour & CBlobContour::operator= | ( | const CBlobContour & | source | ) |
void CBlobContour::ResetChainCode | ( | ) | [protected] |
Clears chain code contour.
Clears chain code contour and points.
Definition at line 105 of file BlobContour.cpp.
friend class CBlob [friend] |
Definition at line 25 of file BlobContour.h.
double CBlobContour::m_area [private] |
Computed area from contour.
Definition at line 86 of file BlobContour.h.
t_chainCodeList CBlobContour::m_contour [protected] |
Crack code list.
Definition at line 75 of file BlobContour.h.
t_PointList CBlobContour::m_contourPoints [private] |
All points from the contour.
Definition at line 81 of file BlobContour.h.
CvMoments CBlobContour::m_moments [private] |
Computed moments from contour.
Definition at line 90 of file BlobContour.h.
CvMemStorage* CBlobContour::m_parentStorage [private] |
Pointer to storage.
Definition at line 93 of file BlobContour.h.
double CBlobContour::m_perimeter [private] |
Computed perimeter from contour.
Definition at line 88 of file BlobContour.h.
CvPoint CBlobContour::m_startPoint [private] |
Starting point of the contour.
Definition at line 79 of file BlobContour.h.