Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
VISP_NAMESPACE_NAME::vpContour Struct Reference

#include <vpContours.h>

Public Member Functions

 vpContour ()
VP_EXPLICIT vpContour (const vpContourType &type)
 vpContour (const vpContour &contour)
virtual ~vpContour ()
vpContouroperator= (const vpContour &other)
void setParent (vpContour *parent)

Public Attributes

std::vector< vpContour * > m_children
vpContourType m_contourType
vpContourm_parent
std::vector< VISP_NAMESPACE_ADDRESSING vpImagePointm_points

Detailed Description

Structure associated to a contour.

Examples
testContours.cpp, tutorial-contour.cpp, and tutorial-count-coins.cpp.

Definition at line 209 of file vpContours.h.

Constructor & Destructor Documentation

◆ vpContour() [1/3]

VISP_NAMESPACE_NAME::vpContour::vpContour ( )
inline

Default constructor.

Definition at line 223 of file vpContours.h.

References VISP_NAMESPACE_NAME::CONTOUR_HOLE, m_children, m_contourType, m_parent, and m_points.

Referenced by operator=(), setParent(), and vpContour().

◆ vpContour() [2/3]

VP_EXPLICIT VISP_NAMESPACE_NAME::vpContour::vpContour ( const vpContourType & type)
inline

Constructor of a given contour type.

Definition at line 228 of file vpContours.h.

References m_children, m_contourType, m_parent, and m_points.

◆ vpContour() [3/3]

VISP_NAMESPACE_NAME::vpContour::vpContour ( const vpContour & contour)
inline

Copy constructor.

Definition at line 233 of file vpContours.h.

References m_children, m_contourType, m_parent, m_points, and vpContour().

◆ ~vpContour()

virtual VISP_NAMESPACE_NAME::vpContour::~vpContour ( )
inlinevirtual

Destructor.

Definition at line 250 of file vpContours.h.

References m_children.

Member Function Documentation

◆ operator=()

vpContour & VISP_NAMESPACE_NAME::vpContour::operator= ( const vpContour & other)
inline

Copy operator.

Definition at line 265 of file vpContours.h.

References m_children, m_contourType, m_parent, and vpContour().

◆ setParent()

void VISP_NAMESPACE_NAME::vpContour::setParent ( vpContour * parent)
inline

Set parent contour.

Definition at line 300 of file vpContours.h.

References m_children, m_parent, and vpContour().

Referenced by VISP_NAMESPACE_NAME::findContours().

Member Data Documentation

◆ m_children

std::vector<vpContour *> VISP_NAMESPACE_NAME::vpContour::m_children

◆ m_contourType

vpContourType VISP_NAMESPACE_NAME::vpContour::m_contourType

◆ m_parent

vpContour* VISP_NAMESPACE_NAME::vpContour::m_parent

Parent contour.

Definition at line 216 of file vpContours.h.

Referenced by VISP_NAMESPACE_NAME::findContours(), operator=(), setParent(), vpContour(), vpContour(), and vpContour().

◆ m_points

std::vector<VISP_NAMESPACE_ADDRESSING vpImagePoint> VISP_NAMESPACE_NAME::vpContour::m_points