Visual Servoing Platform  version 3.6.1 under development (2024-11-21)
vpGaussianFilter Class Reference

#include <visp3/core/vpGaussianFilter.h>

Public Member Functions

 vpGaussianFilter (unsigned int width, unsigned int height, float sigma, bool deinterleave=false)
 
void apply (const vpImage< unsigned char > &I, vpImage< unsigned char > &I_blur)
 
void apply (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &I_blur)
 
virtual ~vpGaussianFilter ()
 

Detailed Description

Gaussian filter class.

Examples
catchGaussianFilter.cpp, and perfGaussianFilter.cpp.

Definition at line 55 of file vpGaussianFilter.h.

Constructor & Destructor Documentation

◆ vpGaussianFilter()

BEGIN_VISP_NAMESPACE vpGaussianFilter::vpGaussianFilter ( unsigned int  width,
unsigned int  height,
float  sigma,
bool  deinterleave = false 
)

Gaussian filter constructor.

Parameters
[in]width: image width.
[in]height: image height.
[in]sigma: Standard deviation for Gaussian kernel.
[in]deinterleave: if true, deinterleave R, G, B channels and perform Gaussian filter on each individual channel. It can be faster to deinterleave when repeatedly calling Gaussian filter with the same sigma and the same image resolution.

Definition at line 128 of file vpGaussianFilter.cpp.

◆ ~vpGaussianFilter()

vpGaussianFilter::~vpGaussianFilter ( )
virtual

Definition at line 132 of file vpGaussianFilter.cpp.

Member Function Documentation

◆ apply() [1/2]

void vpGaussianFilter::apply ( const vpImage< unsigned char > &  I,
vpImage< unsigned char > &  I_blur 
)

Apply Gaussian filter on grayscale image.

Parameters
[in]I: input grayscale image.
[out]I_blur: output blurred grayscale image.
Examples
catchGaussianFilter.cpp.

Definition at line 140 of file vpGaussianFilter.cpp.

Referenced by VISP_NAMESPACE_NAME::unsharpMask().

◆ apply() [2/2]

void vpGaussianFilter::apply ( const vpImage< vpRGBa > &  I,
vpImage< vpRGBa > &  I_blur 
)

Apply Gaussian filter on color image.

Parameters
[in]I: input color image.
[out]I_blur: output blurred color image.

Definition at line 151 of file vpGaussianFilter.cpp.