Visual Servoing Platform  version 3.6.1 under development (2024-02-13)
vp::vpContour Struct Reference

#include <visp3/imgproc/vpContours.h>

Public Member Functions

 vpContour ()
 
 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< 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]

vp::vpContour::vpContour ( )
inline

Default constructor.

Definition at line 223 of file vpContours.h.

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

◆ vpContour() [2/3]

vp::vpContour::vpContour ( const vpContourType type)
inline

Constructor of a given contour type.

Definition at line 228 of file vpContours.h.

◆ vpContour() [3/3]

vp::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 vp::vpContour::~vpContour ( )
inlinevirtual

Destructor.

Definition at line 249 of file vpContours.h.

References m_children.

Member Function Documentation

◆ operator=()

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

Copy operator.

Definition at line 263 of file vpContours.h.

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

◆ setParent()

void vp::vpContour::setParent ( vpContour parent)
inline

Set parent contour.

Definition at line 296 of file vpContours.h.

References m_children, and m_parent.

Referenced by vp::findContours().

Member Data Documentation

◆ m_children

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

Children contour.

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

Definition at line 212 of file vpContours.h.

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

◆ m_contourType

vpContourType vp::vpContour::m_contourType

Contour type.

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

Definition at line 214 of file vpContours.h.

Referenced by vp::findContours(), and operator=().

◆ m_parent

vpContour* vp::vpContour::m_parent

Parent contour.

Definition at line 216 of file vpContours.h.

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

◆ m_points

std::vector<vpImagePoint> vp::vpContour::m_points

Vector of points belonging to the contour.

Examples
tutorial-contour.cpp.

Definition at line 218 of file vpContours.h.

Referenced by vp::findContours().