Visual Servoing Platform  version 3.6.1 under development (2024-04-23)

Functions

VISP_EXPORT void vp::unsharpMask (vpImage< unsigned char > &I, float sigma, double weight=0.6)
 
VISP_EXPORT void vp::unsharpMask (const vpImage< unsigned char > &I, vpImage< unsigned char > &Ires, float sigma, double weight=0.6)
 
VISP_EXPORT void vp::unsharpMask (vpImage< vpRGBa > &I, float sigma, double weight=0.6)
 
VISP_EXPORT void vp::unsharpMask (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Ires, float sigma, double weight=0.6)
 

Detailed Description

Image sharpening.

Function Documentation

◆ unsharpMask() [1/4]

void vp::unsharpMask ( const vpImage< unsigned char > &  I,
vpImage< unsigned char > &  Ires,
float  sigma,
double  weight = 0.6 
)

Sharpen a grayscale image using the unsharp mask technique.

Parameters
I: The input grayscale image.
Ires: The output grayscale image.
sigma: Standard deviation for Gaussian kernel.
weight: Weight (between [0 - 1[) for the sharpening process.

Definition at line 892 of file vpImgproc.cpp.

References vp::unsharpMask().

◆ unsharpMask() [2/4]

void vp::unsharpMask ( const vpImage< vpRGBa > &  I,
vpImage< vpRGBa > &  Ires,
float  sigma,
double  weight = 0.6 
)

Sharpen a color image using the unsharp mask technique.

Parameters
I: The input color image.
Ires: The output color image.
sigma: Standard deviation for Gaussian kernel.
weight: Weight (between [0 - 1[) for the sharpening process.

Definition at line 939 of file vpImgproc.cpp.

References vp::unsharpMask().

◆ unsharpMask() [3/4]

void vp::unsharpMask ( vpImage< unsigned char > &  I,
float  sigma,
double  weight = 0.6 
)

Sharpen a grayscale image using the unsharp mask technique.

Parameters
I: The grayscale image to sharpen.
sigma: Standard deviation for Gaussian kernel.
weight: Weight (between [0 - 1[) for the sharpening process.
Examples
testImgproc.cpp, and tutorial-contrast-sharpening.cpp.

Definition at line 867 of file vpImgproc.cpp.

References vpGaussianFilter::apply(), vpImage< Type >::bitmap, vpImageFilter::gaussianBlur(), vpImage< Type >::getHeight(), vpImage< Type >::getSize(), and vpImage< Type >::getWidth().

Referenced by vp::unsharpMask().

◆ unsharpMask() [4/4]

void vp::unsharpMask ( vpImage< vpRGBa > &  I,
float  sigma,
double  weight = 0.6 
)

Sharpen a color image using the unsharp mask technique.

Parameters
I: The color image to sharpen.
sigma: Standard deviation for Gaussian kernel.
weight: Weight (between [0 - 1[) for the sharpening process.

Definition at line 899 of file vpImgproc.cpp.

References vpGaussianFilter::apply(), vpRGBa::B, vpImage< Type >::bitmap, vpRGBa::G, vpImageFilter::gaussianBlur(), vpImage< Type >::getHeight(), vpImage< Type >::getSize(), vpImage< Type >::getWidth(), vpRGBa::R, and vpImageConvert::split().