Visual Servoing Platform  version 3.1.0
vp::vpContour Struct Reference

#include <visp3/imgproc/vpContours.h>

Public Member Functions

 vpContour ()
 
 vpContour (const vpContourType &type)
 
 vpContour (const vpContour &contour)
 
 ~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

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

Definition at line 171 of file vpContours.h.

Constructor & Destructor Documentation

◆ vpContour() [1/3]

vp::vpContour::vpContour ( )
inline

Definition at line 177 of file vpContours.h.

References vp::CONTOUR_HOLE.

◆ vpContour() [2/3]

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

Definition at line 179 of file vpContours.h.

◆ vpContour() [3/3]

vp::vpContour::vpContour ( const vpContour contour)
inline

Definition at line 181 of file vpContours.h.

References m_children, and m_parent.

◆ ~vpContour()

vp::vpContour::~vpContour ( )
inline

Definition at line 194 of file vpContours.h.

Member Function Documentation

◆ operator=()

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

Definition at line 205 of file vpContours.h.

References m_children, m_contourType, and m_parent.

◆ setParent()

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

Definition at line 234 of file vpContours.h.

References vp::CONTOUR_RETR_TREE, vp::drawContours(), vp::findContours(), and m_children.

Referenced by vp::findContours().

Member Data Documentation

◆ m_children

std::vector<vpContour *> vp::vpContour::m_children
Examples:
testContours.cpp, and tutorial-contour.cpp.

Definition at line 172 of file vpContours.h.

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

◆ m_contourType

vpContourType vp::vpContour::m_contourType
Examples:
testContours.cpp, and tutorial-contour.cpp.

Definition at line 173 of file vpContours.h.

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

◆ m_parent

vpContour* vp::vpContour::m_parent

Definition at line 174 of file vpContours.h.

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

◆ m_points

std::vector<vpImagePoint> vp::vpContour::m_points
Examples:
tutorial-contour.cpp.

Definition at line 175 of file vpContours.h.

Referenced by vp::findContours().