Visual Servoing Platform
version 3.6.1 under development (2024-12-13)
|
#include <visp3/imgproc/vpContours.h>
Public Member Functions | |
vpDirection () | |
vpDirection | clockwise () |
vpDirection | counterClockwise () |
VISP_NAMESPACE_ADDRESSING vpImagePoint | active (const VISP_NAMESPACE_ADDRESSING vpImage< int > &I, const VISP_NAMESPACE_ADDRESSING vpImagePoint &point) |
Public Attributes | |
vpDirectionType | m_direction |
int | m_dirx [8] |
int | m_diry [8] |
Direction object.
Definition at line 99 of file vpContours.h.
|
inline |
Default constructor.
Definition at line 114 of file vpContours.h.
References m_direction, m_dirx, m_diry, and VISP_NAMESPACE_NAME::NORTH.
|
inline |
Get the next point coordinate along the contour.
I | Image to process. |
point | Current point coordinate. |
Definition at line 172 of file vpContours.h.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), m_direction, m_dirx, and m_diry.
Referenced by VISP_NAMESPACE_NAME::followBorder().
|
inline |
Turn clockwise to find the next pixel along the contour.
Definition at line 143 of file vpContours.h.
References VISP_NAMESPACE_NAME::LAST_DIRECTION, and m_direction.
Referenced by VISP_NAMESPACE_NAME::followBorder().
|
inline |
Turn counter clockwise to find the next pixel along the contour.
Definition at line 156 of file vpContours.h.
References VISP_NAMESPACE_NAME::LAST_DIRECTION, m_direction, and vpMath::modulo().
Referenced by VISP_NAMESPACE_NAME::followBorder().
vpDirectionType VISP_NAMESPACE_NAME::vpDirection::m_direction |
Direction.
Definition at line 103 of file vpContours.h.
Referenced by active(), clockwise(), counterClockwise(), VISP_NAMESPACE_NAME::crossesEastBorder(), VISP_NAMESPACE_NAME::followBorder(), VISP_NAMESPACE_NAME::fromTo(), and vpDirection().
int VISP_NAMESPACE_NAME::vpDirection::m_dirx[8] |
Pixel increment along x to reach a given direction.
Definition at line 106 of file vpContours.h.
Referenced by active(), and vpDirection().
int VISP_NAMESPACE_NAME::vpDirection::m_diry[8] |
Pixel increment along y to reach a given direction.
Definition at line 109 of file vpContours.h.
Referenced by active(), and vpDirection().