Visual Servoing Platform  version 3.2.0 under development (2019-01-22)
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

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

Definition at line 171 of file vpContours.h.

Constructor & Destructor Documentation

vp::vpContour::vpContour ( )
inline

Definition at line 177 of file vpContours.h.

References vp::CONTOUR_HOLE.

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

Definition at line 179 of file vpContours.h.

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

Definition at line 181 of file vpContours.h.

References m_children, and m_parent.

virtual vp::vpContour::~vpContour ( )
inlinevirtual

Definition at line 194 of file vpContours.h.

Member Function Documentation

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

Definition at line 205 of file vpContours.h.

References m_children, m_contourType, and m_parent.

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

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().

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=().

vpContour* vp::vpContour::m_parent

Definition at line 174 of file vpContours.h.

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

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

Definition at line 175 of file vpContours.h.

Referenced by vp::findContours().