Image Component Library (ICL)
|
Class for Wiener Filter \. More...
#include <WienerOp.h>
Public Member Functions | |
WienerOp (const utils::Size &maskSize, icl32f noise=0) | |
Constructor that creates a wiener filter object, with specified mask size. | |
ICLFilter_API void | apply (const core::ImgBase *poSrc, core::ImgBase **ppoDst) |
Filters an image using the Wiener algorithm. | |
icl32f | getNoise () const |
returns the current noise factor | |
void | setNoise (icl32f noise) |
sets up a new noise factor | |
Private Attributes | |
std::vector< icl8u > | m_vecBuffer |
internal buffer for applying the wiener operation | |
icl32f | m_fNoise |
internal storage for the current noise factor |
Class for Wiener Filter \.
Wiener filters are commonly used in image processing applications to remove additive noise from degraded images, to restore a blurred image.
The following operation is performed on each pixel:
where:
icl::filter::WienerOp::WienerOp | ( | const utils::Size & | maskSize, |
icl32f | noise = 0 |
||
) | [inline] |
Constructor that creates a wiener filter object, with specified mask size.
maskSize | of odd width and height Even width or height is increased to next higher odd value. |
noise | nois factor |
ICLFilter_API void icl::filter::WienerOp::apply | ( | const core::ImgBase * | poSrc, |
core::ImgBase ** | ppoDst | ||
) | [virtual] |
Filters an image using the Wiener algorithm.
poSrc | Source image |
ppoDst | Destination image |
Implements icl::filter::UnaryOp.
icl32f icl::filter::WienerOp::getNoise | ( | ) | const [inline] |
returns the current noise factor
void icl::filter::WienerOp::setNoise | ( | icl32f | noise | ) | [inline] |
sets up a new noise factor
@ param noise new noise factor
icl32f icl::filter::WienerOp::m_fNoise [private] |
internal storage for the current noise factor
std::vector<icl8u> icl::filter::WienerOp::m_vecBuffer [private] |
internal buffer for applying the wiener operation