Visual Servoing Platform  version 3.1.0
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 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, const double alpha, const double beta)
 
VISP_EXPORT void adjust (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, const double alpha, const double beta)
 
VISP_EXPORT void adjust (vpImage< vpRGBa > &I, const double alpha, const double beta)
 
VISP_EXPORT void adjust (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, const double alpha, const double beta)
 
VISP_EXPORT void clahe (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, const int blockRadius=150, const int bins=256, const float slope=3.0f, const bool fast=true)
 
VISP_EXPORT void clahe (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, const int blockRadius=150, const int bins=256, const float slope=3.0f, const 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, const bool useHSV=false)
 
VISP_EXPORT void equalizeHistogram (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, const bool useHSV=false)
 
VISP_EXPORT void gammaCorrection (vpImage< unsigned char > &I, const double gamma)
 
VISP_EXPORT void gammaCorrection (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, const double gamma)
 
VISP_EXPORT void gammaCorrection (vpImage< vpRGBa > &I, const double gamma)
 
VISP_EXPORT void gammaCorrection (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, const double gamma)
 
VISP_EXPORT void retinex (vpImage< vpRGBa > &I, const int scale=240, const int scaleDiv=3, const int level=RETINEX_UNIFORM, const double dynamic=1.2, const int kernelSize=-1)
 
VISP_EXPORT void retinex (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, const int scale=240, const int scaleDiv=3, const int level=RETINEX_UNIFORM, const double dynamic=1.2, const 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, const unsigned int size=7, const double weight=0.6)
 
VISP_EXPORT void unsharpMask (const vpImage< unsigned char > &I, vpImage< unsigned char > &Ires, const unsigned int size=7, const double weight=0.6)
 
VISP_EXPORT void unsharpMask (vpImage< vpRGBa > &I, const unsigned int size=7, const double weight=0.6)
 
VISP_EXPORT void unsharpMask (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Ires, const unsigned int size=7, const 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)
 

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 [19]

AUTO_THRESHOLD_INTERMODES 

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

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 [38],

AUTO_THRESHOLD_MEAN 

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

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 [33]

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 [43]

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.