Visual Servoing Platform  version 3.6.1 under development (2024-11-21)
VISP_NAMESPACE_NAME::vpContour Struct Reference

#include <visp3/imgproc/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.

Referenced by operator=(), 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.

◆ 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_parent, 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, and m_parent.

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(), and vpContour().

◆ m_points

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

Vector of points belonging to the contour.

Examples
tutorial-contour.cpp.

Definition at line 218 of file vpContours.h.

Referenced by VISP_NAMESPACE_NAME::addContourPoint(), VISP_NAMESPACE_NAME::findContours(), and VISP_NAMESPACE_NAME::getContoursList().