Visual Servoing Platform  version 3.5.0 under development (2022-02-15)
vp Namespace Reference

Classes

struct  vpContour
 

Enumerations

enum  vpContourType { CONTOUR_OUTER, CONTOUR_HOLE }
 
enum  vpContourRetrievalType { CONTOUR_RETR_TREE, CONTOUR_RETR_LIST, CONTOUR_RETR_EXTERNAL }
 
enum  RETINEX_LEVEL { RETINEX_UNIFORM = 0, RETINEX_LOW = 1, RETINEX_HIGH = 2 }
 
enum  vpAutoThresholdMethod {
  AUTO_THRESHOLD_HUANG, AUTO_THRESHOLD_INTERMODES, AUTO_THRESHOLD_ISODATA, AUTO_THRESHOLD_MEAN,
  AUTO_THRESHOLD_OTSU, AUTO_THRESHOLD_TRIANGLE
}
 

Functions

VISP_EXPORT void eigen2visp (const Eigen::MatrixXd &src, vpMatrix &dst)
 
VISP_EXPORT void eigen2visp (const Eigen::MatrixXd &src, vpHomogeneousMatrix &dst)
 
template<typename Type >
void eigen2visp (const Eigen::Quaternion< Type > &src, vpQuaternionVector &dst)
 
template<typename Type >
void eigen2visp (const Eigen::AngleAxis< Type > &src, vpThetaUVector &dst)
 
VISP_EXPORT void eigen2visp (const Eigen::VectorXd &src, vpColVector &dst)
 
VISP_EXPORT void eigen2visp (const Eigen::RowVectorXd &src, vpRowVector &dst)
 
template<typename Derived >
void visp2eigen (const vpMatrix &src, Eigen::MatrixBase< Derived > &dst)
 
template<typename Derived >
void visp2eigen (const vpHomogeneousMatrix &src, Eigen::MatrixBase< Derived > &dst)
 
template<typename Type >
void visp2eigen (const vpQuaternionVector &src, Eigen::Quaternion< Type > &dst)
 
template<typename Type >
void visp2eigen (const vpThetaUVector &src, Eigen::AngleAxis< Type > &dst)
 
VISP_EXPORT void visp2eigen (const vpColVector &src, Eigen::VectorXd &dst)
 
VISP_EXPORT void visp2eigen (const vpRowVector &src, Eigen::RowVectorXd &dst)
 
VISP_EXPORT void drawContours (vpImage< unsigned char > &I, const std::vector< std::vector< vpImagePoint > > &contours, unsigned char grayValue=255)
 
VISP_EXPORT void drawContours (vpImage< vpRGBa > &I, const std::vector< std::vector< vpImagePoint > > &contours, const vpColor &color)
 
VISP_EXPORT void findContours (const vpImage< unsigned char > &I_original, vpContour &contours, std::vector< std::vector< vpImagePoint > > &contourPts, const vpContourRetrievalType &retrievalMode=vp::CONTOUR_RETR_TREE)
 
VISP_EXPORT void adjust (vpImage< unsigned char > &I, double alpha, double beta)
 
VISP_EXPORT void adjust (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, double alpha, double beta)
 
VISP_EXPORT void adjust (vpImage< vpRGBa > &I, const double alpha, double beta)
 
VISP_EXPORT void adjust (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, double alpha, double beta)
 
VISP_EXPORT void clahe (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, int blockRadius=150, int bins=256, float slope=3.0f, bool fast=true)
 
VISP_EXPORT void clahe (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, int blockRadius=150, int bins=256, float slope=3.0f, bool fast=true)
 
VISP_EXPORT void equalizeHistogram (vpImage< unsigned char > &I)
 
VISP_EXPORT void equalizeHistogram (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2)
 
VISP_EXPORT void equalizeHistogram (vpImage< vpRGBa > &I, bool useHSV=false)
 
VISP_EXPORT void equalizeHistogram (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, bool useHSV=false)
 
VISP_EXPORT void gammaCorrection (vpImage< unsigned char > &I, double gamma)
 
VISP_EXPORT void gammaCorrection (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, double gamma)
 
VISP_EXPORT void gammaCorrection (vpImage< vpRGBa > &I, double gamma)
 
VISP_EXPORT void gammaCorrection (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, double gamma)
 
VISP_EXPORT void retinex (vpImage< vpRGBa > &I, int scale=240, int scaleDiv=3, int level=RETINEX_UNIFORM, double dynamic=1.2, int kernelSize=-1)
 
VISP_EXPORT void retinex (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, int scale=240, int scaleDiv=3, int level=RETINEX_UNIFORM, double dynamic=1.2, int kernelSize=-1)
 
VISP_EXPORT void stretchContrast (vpImage< unsigned char > &I)
 
VISP_EXPORT void stretchContrast (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2)
 
VISP_EXPORT void stretchContrast (vpImage< vpRGBa > &I)
 
VISP_EXPORT void stretchContrast (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2)
 
VISP_EXPORT void stretchContrastHSV (vpImage< vpRGBa > &I)
 
VISP_EXPORT void stretchContrastHSV (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2)
 
VISP_EXPORT void unsharpMask (vpImage< unsigned char > &I, float sigma, double weight=0.6)
 
VISP_EXPORT void unsharpMask (const vpImage< unsigned char > &I, vpImage< unsigned char > &Ires, float sigma, double weight=0.6)
 
VISP_EXPORT void unsharpMask (vpImage< vpRGBa > &I, float sigma, double weight=0.6)
 
VISP_EXPORT void unsharpMask (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Ires, float sigma, double weight=0.6)
 
VISP_EXPORT void connectedComponents (const vpImage< unsigned char > &I, vpImage< int > &labels, int &nbComponents, const vpImageMorphology::vpConnexityType &connexity=vpImageMorphology::CONNEXITY_4)
 
VISP_EXPORT void fillHoles (vpImage< unsigned char > &I)
 
VISP_EXPORT void floodFill (vpImage< unsigned char > &I, const vpImagePoint &seedPoint, const unsigned char oldValue, const unsigned char newValue, const vpImageMorphology::vpConnexityType &connexity=vpImageMorphology::CONNEXITY_4)
 
VISP_EXPORT void reconstruct (const vpImage< unsigned char > &marker, const vpImage< unsigned char > &mask, vpImage< unsigned char > &I, const vpImageMorphology::vpConnexityType &connexity=vpImageMorphology::CONNEXITY_4)
 
VISP_EXPORT unsigned char autoThreshold (vpImage< unsigned char > &I, const vp::vpAutoThresholdMethod &method, const unsigned char backgroundValue=0, const unsigned char foregroundValue=255)
 
Deprecated functions
vp_deprecated VISP_EXPORT void unsharpMask (vpImage< unsigned char > &I, unsigned int size=7, double weight=0.6)
 
vp_deprecated VISP_EXPORT void unsharpMask (const vpImage< unsigned char > &I, vpImage< unsigned char > &Ires, unsigned int size=7, double weight=0.6)
 
vp_deprecated VISP_EXPORT void unsharpMask (vpImage< vpRGBa > &I, unsigned int size=7, double weight=0.6)
 
vp_deprecated VISP_EXPORT void unsharpMask (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Ires, unsigned int size=7, double weight=0.6)
 

Enumeration Type Documentation

◆ RETINEX_LEVEL

Enumerator
RETINEX_UNIFORM 
RETINEX_LOW 
RETINEX_HIGH 

Definition at line 56 of file vpImgproc.h.

◆ vpAutoThresholdMethod

Enumerator
AUTO_THRESHOLD_HUANG 

Huang L.-K. and Wang M.-J.J. (1995) "Image Thresholding by Minimizing the Measures of Fuzziness" Pattern Recognition, 28(1): 41-51 [21]

AUTO_THRESHOLD_INTERMODES 

Prewitt, JMS & Mendelsohn, ML (1966), "The analysis of cell images", Annals of the New York Academy of Sciences 128: 1035-1053 [40]

AUTO_THRESHOLD_ISODATA 

Ridler, TW & Calvard, S (1978), "Picture thresholding using an iterative selection method", IEEE Transactions on Systems, Man and Cybernetics 8: 630-632 [41],

AUTO_THRESHOLD_MEAN 

Glasbey, CA (1993), "An analysis of histogram-based thresholding algorithms", CVGIP: Graphical Models and Image Processing 55: 532-537 [17]

AUTO_THRESHOLD_OTSU 

Otsu, N (1979), "A threshold selection method from gray-level histograms", IEEE Trans. Sys., Man., Cyber. 9: 62-66, doi:10.1109/TSMC.1979.4310076 [38]

AUTO_THRESHOLD_TRIANGLE 

Zack GW, Rogers WE, Latt SA (1977), "Automatic measurement of sister chromatid exchange frequency", J. Histochem. Cytochem. 25 (7): 741–53, PMID 70454 [48]

Examples:
tutorial-count-coins.cpp.

Definition at line 58 of file vpImgproc.h.

◆ vpContourRetrievalType

Enumerator
CONTOUR_RETR_TREE 

Retrieve all the contours with the hierarchy stored in a tree.

CONTOUR_RETR_LIST 

Retrieve all the contours without any hierarchy.

CONTOUR_RETR_EXTERNAL 

Retrieve only external contours.

Examples:
tutorial-contour.cpp.

Definition at line 164 of file vpContours.h.

◆ vpContourType

Enumerator
CONTOUR_OUTER 

Outer contour.

CONTOUR_HOLE 

Hole contour.

Definition at line 159 of file vpContours.h.

Function Documentation

◆ eigen2visp() [1/6]

void vp::eigen2visp ( const Eigen::MatrixXd &  src,
vpMatrix dst 
)
Examples:
testEigenConversion.cpp.

Definition at line 42 of file vpEigenConversion.cpp.

References vpArray2D< Type >::data, and vpArray2D< Type >::resize().

Referenced by eigen2visp().

◆ eigen2visp() [2/6]

void vp::eigen2visp ( const Eigen::MatrixXd &  src,
vpHomogeneousMatrix dst 
)

Definition at line 48 of file vpEigenConversion.cpp.

References vpArray2D< Type >::data, and vpException::dimensionError.

◆ eigen2visp() [3/6]

template<typename Type >
void vp::eigen2visp ( const Eigen::Quaternion< Type > &  src,
vpQuaternionVector dst 
)

Definition at line 53 of file vpEigenConversion.h.

References vpQuaternionVector::buildFrom().

◆ eigen2visp() [4/6]

template<typename Type >
void vp::eigen2visp ( const Eigen::AngleAxis< Type > &  src,
vpThetaUVector dst 
)

Definition at line 59 of file vpEigenConversion.h.

References vpThetaUVector::buildFrom(), and eigen2visp().

◆ eigen2visp() [5/6]

void vp::eigen2visp ( const Eigen::VectorXd &  src,
vpColVector dst 
)

Definition at line 57 of file vpEigenConversion.cpp.

References vpColVector::resize().

◆ eigen2visp() [6/6]

void vp::eigen2visp ( const Eigen::RowVectorXd &  src,
vpRowVector dst 
)

Definition at line 69 of file vpEigenConversion.cpp.

References vpRowVector::resize().

◆ visp2eigen() [1/6]

template<typename Derived >
void vp::visp2eigen ( const vpMatrix src,
Eigen::MatrixBase< Derived > &  dst 
)

◆ visp2eigen() [2/6]

template<typename Derived >
void vp::visp2eigen ( const vpHomogeneousMatrix src,
Eigen::MatrixBase< Derived > &  dst 
)

◆ visp2eigen() [3/6]

template<typename Type >
void vp::visp2eigen ( const vpQuaternionVector src,
Eigen::Quaternion< Type > &  dst 
)

◆ visp2eigen() [4/6]

template<typename Type >
void vp::visp2eigen ( const vpThetaUVector src,
Eigen::AngleAxis< Type > &  dst 
)

◆ visp2eigen() [5/6]

void vp::visp2eigen ( const vpColVector src,
Eigen::VectorXd &  dst 
)

Definition at line 81 of file vpEigenConversion.cpp.

References vpArray2D< Type >::data, and vpArray2D< Type >::size().

◆ visp2eigen() [6/6]

void vp::visp2eigen ( const vpRowVector src,
Eigen::RowVectorXd &  dst 
)

Definition at line 86 of file vpEigenConversion.cpp.

References vpArray2D< Type >::data, and vpArray2D< Type >::size().