43 #include <visp3/core/vpConfig.h>
44 #include <visp3/core/vpImage.h>
45 #include <visp3/core/vpImageMorphology.h>
46 #include <visp3/imgproc/vpContours.h>
48 #define USE_OLD_FILL_HOLE 0
125 VISP_EXPORT std::string
vpGammaMethodList(
const std::string &pref =
"<",
const std::string &sep =
" , ",
126 const std::string &suf =
">");
164 const std::string &suf =
">");
262 int bins = 256,
float slope = 3.0f,
bool fast =
true);
292 float slope = 3.0f,
bool fast =
true);
444 double dynamic = 1.2,
int kernelSize = -1);
469 int level =
RETINEX_UNIFORM,
double dynamic = 1.2,
int kernelSize = -1);
552 double weight = 0.6);
598 #
if USE_OLD_FILL_HOLE
616 const unsigned char newValue,
652 const unsigned char backgroundValue = 0,
653 const unsigned char foregroundValue = 255);
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
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 adjust(vpImage< unsigned char > &I, double alpha, double beta)
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 connectedComponents(const vpImage< unsigned char > &I, vpImage< int > &labels, int &nbComponents, const vpImageMorphology::vpConnexityType &connexity=vpImageMorphology::CONNEXITY_4)
VISP_EXPORT void stretchContrast(vpImage< unsigned char > &I)
VISP_EXPORT void stretchContrastHSV(vpImage< vpRGBa > &I)
VISP_EXPORT void gammaCorrection(vpImage< unsigned char > &I, const float &gamma, const vpGammaMethod &method=vp::GAMMA_MANUAL, const vpImage< bool > *p_mask=nullptr)
VISP_EXPORT void equalizeHistogram(vpImage< unsigned char > &I, const vpImage< bool > *p_mask=nullptr)
VISP_EXPORT void fillHoles(vpImage< unsigned char > &I)
VISP_EXPORT void reconstruct(const vpImage< unsigned char > &marker, const vpImage< unsigned char > &mask, vpImage< unsigned char > &h_kp1, const vpImageMorphology::vpConnexityType &connexity=vpImageMorphology::CONNEXITY_4)
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 unsharpMask(vpImage< unsigned char > &I, float sigma, double weight=0.6)
VISP_EXPORT unsigned char autoThreshold(vpImage< unsigned char > &I, const vp::vpAutoThresholdMethod &method, const unsigned char backgroundValue=0, const unsigned char foregroundValue=255)
vpGammaMethod
Gamma Correction automatic methods.
@ GAMMA_SPATIAL_VARIANT_BASED
@ GAMMA_CLASSIFICATION_BASED
VISP_EXPORT vpGammaColorHandling vpGammaColorHandlingFromString(const std::string &name)
Cast a string into a vp::vpGammaColorHandling.
vpGammaColorHandling
How to handle color images when applying Gamma Correction.
@ GAMMA_COLOR_HANDLING_COUNT
VISP_EXPORT std::string vpGammaColorHandlingList(const std::string &pref="<", const std::string &sep=" , ", const std::string &suf=">")
Get the list of available vpGammaColorHandling.
@ RETINEX_HIGH
Enhances the bright regions of the image.
@ RETINEX_LOW
Enhances dark regions of the image.
@ RETINEX_UNIFORM
Tends to treat all image intensities similarly.
@ AUTO_THRESHOLD_INTERMODES
@ AUTO_THRESHOLD_TRIANGLE
VISP_EXPORT std::string vpGammaMethodList(const std::string &pref="<", const std::string &sep=" , ", const std::string &suf=">")
Get the list of available vpGammaMethod.
VISP_EXPORT std::string vpGammaColorHandlingToString(const vpGammaColorHandling &type)
Cast a vp::vpGammaColorHandling into a string, to know its name.
VISP_EXPORT vpGammaMethod vpGammaMethodFromString(const std::string &name)
Cast a string into a vp::vpGammaMethod.
VISP_EXPORT std::string vpGammaMethodToString(const vpGammaMethod &type)
Cast a vp::vpGammaMethod into a string, to know its name.