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

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)
 

Deprecated functions

vp_deprecated VISP_EXPORT void vp::unsharpMask (vpImage< unsigned char > &I, unsigned int size=7, double weight=0.6)
 
vp_deprecated VISP_EXPORT void vp::unsharpMask (const vpImage< unsigned char > &I, vpImage< unsigned char > &Ires, unsigned int size=7, double weight=0.6)
 
vp_deprecated VISP_EXPORT void vp::unsharpMask (vpImage< vpRGBa > &I, unsigned int size=7, double weight=0.6)
 
vp_deprecated VISP_EXPORT void vp::unsharpMask (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Ires, unsigned int size=7, double weight=0.6)
 

Detailed Description

Image sharpening.

Function Documentation

◆ unsharpMask() [1/8]

void vp::unsharpMask ( vpImage< unsigned char > &  I,
unsigned int  size = 7,
double  weight = 0.6 
)
Deprecated:
This function is deprecated. You should rather use unsharpMask() with sigma Gaussian parameter. You can use sigma = 1.0f to have similar results.

Sharpen a grayscale image using the unsharp mask technique.

Parameters
I: The grayscale image to sharpen.
size: Size (must be odd) of the Gaussian blur kernel.
weight: Weight (between [0 - 1[) for the sharpening process.
Examples:
testImgproc.cpp, and tutorial-contrast-sharpening.cpp.

Definition at line 719 of file vpImgproc.cpp.

References vpImage< Type >::bitmap, vpImageFilter::gaussianBlur(), and vpImage< Type >::getSize().

Referenced by vp::unsharpMask().

◆ unsharpMask() [2/8]

void vp::unsharpMask ( const vpImage< unsigned char > &  I1,
vpImage< unsigned char > &  I2,
unsigned int  size = 7,
double  weight = 0.6 
)
Deprecated:
This function is deprecated. You should rather use unsharpMask() with sigma Gaussian parameter. You can use sigma = 1.0f to have similar results.

Sharpen a grayscale image using the unsharp mask technique.

Parameters
I1: The first input grayscale image.
I2: The second output grayscale image.
size: Size (must be odd) of the Gaussian blur kernel.
weight: Weight (between [0 - 1[) for the sharpening process.

Definition at line 747 of file vpImgproc.cpp.

References vpImage< Type >::bitmap, vpImageFilter::gaussianBlur(), vpImage< Type >::getSize(), and vp::unsharpMask().

◆ unsharpMask() [3/8]

void vp::unsharpMask ( vpImage< vpRGBa > &  I,
unsigned int  size = 7,
double  weight = 0.6 
)
Deprecated:
This function is deprecated. You should rather use unsharpMask() with sigma Gaussian parameter. You can use sigma = 1.0f to have similar results.

Sharpen a color image using the unsharp mask technique.

Parameters
I: The color image to sharpen.
size: Size (must be odd) of the Gaussian blur kernel.
weight: Weight (between [0 - 1[) for the sharpening process.

Definition at line 783 of file vpImgproc.cpp.

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

◆ unsharpMask() [4/8]

void vp::unsharpMask ( const vpImage< vpRGBa > &  I1,
vpImage< vpRGBa > &  I2,
unsigned int  size = 7,
double  weight = 0.6 
)
Deprecated:
This function is deprecated. You should rather use unsharpMask() with sigma Gaussian parameter. You can use sigma = 1.0f to have similar results.

Sharpen a color image using the unsharp mask technique.

Parameters
I1: The first input color image.
I2: The second output color image.
size: Size (must be odd) of the Gaussian blur kernel.
weight: Weight (between [0 - 1[) for the sharpening process.

Definition at line 821 of file vpImgproc.cpp.

References vpRGBa::B, vpImage< Type >::bitmap, vpRGBa::G, vpImageFilter::gaussianBlur(), vpImage< Type >::getSize(), vpRGBa::R, vpImageConvert::split(), and vp::unsharpMask().

◆ unsharpMask() [5/8]

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.

Definition at line 625 of file vpImgproc.cpp.

References vpImage< Type >::bitmap, vpImage< Type >::getHeight(), vpImage< Type >::getSize(), and vpImage< Type >::getWidth().

◆ unsharpMask() [6/8]

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

Sharpen a grayscale image using the unsharp mask technique.

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

Definition at line 651 of file vpImgproc.cpp.

References vp::unsharpMask().

◆ unsharpMask() [7/8]

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 668 of file vpImgproc.cpp.

References vpRGBa::B, vpImage< Type >::bitmap, vpRGBa::G, vpImage< Type >::getHeight(), vpImage< Type >::getSize(), vpImage< Type >::getWidth(), and vpRGBa::R.

◆ unsharpMask() [8/8]

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

Sharpen a color image using the unsharp mask technique.

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

Definition at line 699 of file vpImgproc.cpp.

References vp::unsharpMask().