DeWAFF
Deceived Weighted Average Filters Framework Image abstraction algorithm implementation in C++
DeWAFF Class Reference

Deceived Weighted Average Filters Framework class. It applies a filter where the intput is decoupled in to a weighting input and a main input so it is possible to deceive the filter with a manipulated input and to still use the original input weighting values for the processing. More...

Public Member Functions

 DeWAFF ()
 DeWAFF class constructor. Sets the lambda parameter for the Laplacian deceive.
 
Mat DeceivedBilateralFilter (const Mat &inputImage, int windowSize, double spatialSigma, double rangeSigma)
 Parameter for the Laplacian deceive. More...
 
Mat DeceivedScaledBilateralFilter (const Mat &inputImage, int windowSize, double spatialSigma, double rangeSigma)
 Apply a Deceived Scaled Bilateral Filter to an image. Similar to the Deceived Bilateral Filter, but the weighting image is low pass filtered. More...
 
Mat DeceivedNonLocalMeansFilter (const Mat &inputImage, int windowSize, int neighborhoodSize, double spatialSigma, double rangeSigma)
 Apply a Deceived Non Local Means Filter to an image. Computationally demanding algorithm, can take as much as ten times more than the other filters in the framework. More...
 
Mat DeceivedGuidedFilter (const Mat &inputImage, int windowSize, double spatialSigma, double rangeSigma)
 Apply a Deceived Guided Filter to an image. The fastest WAF for the DeWAFF yet. More...
 

Public Attributes

double usmLambda
 

Detailed Description

Deceived Weighted Average Filters Framework class. It applies a filter where the intput is decoupled in to a weighting input and a main input so it is possible to deceive the filter with a manipulated input and to still use the original input weighting values for the processing.

Definition at line 25 of file DeWAFF.hpp.

Member Function Documentation

◆ DeceivedBilateralFilter()

Mat DeWAFF::DeceivedBilateralFilter ( const Mat &  inputImage,
int  windowSize,
double  spatialSigma,
double  rangeSigma 
)

Parameter for the Laplacian deceive.

Apply a Deceived Bilateral Filter to an image.

Parameters
inputImageinput image
windowSizeprocessing window size, has to be odd numbered and greater or equal than 3
spatialSigmaspatial standard deviation
rangeSigmarange or radiometric standard deviation
Returns

\[ Y_{\psi_{\text BF}}(p) = \left( \sum_{m \subset \Omega} \psi_{\text BF}(U, m, p) \right)^{-1} \left( \sum_{m \subset \Omega} \psi_{\text BF}(U, p, m) \, \hat{f}_{\text USM}(m) \right) \]

where

\[ \hat{f}_{\text USM} = U + \lambda \, \text{LoG} \]

Definition at line 22 of file DeWAFF.cpp.

◆ DeceivedGuidedFilter()

Mat DeWAFF::DeceivedGuidedFilter ( const Mat &  inputImage,
int  windowSize,
double  spatialSigma,
double  rangeSigma 
)

Apply a Deceived Guided Filter to an image. The fastest WAF for the DeWAFF yet.

Parameters
inputImageinput image
windowSizeprocessing window size, has to be odd numbered and greater or equal than 3
spatialSigmaspatial standard deviation
rangeSigmarange or radiometric standard deviation
Returns

\[ Y_{\psi_{\text GF}}(p) = \frac{1}{|\Omega|} \sum_{k:i \in \Omega_k} (a_k(U, \hat{f}_{\text USM}) \, U(m) + b_k(U, \hat{f}_{\text USM})\]

where

\[ \hat{f}_{\text USM} = U + \lambda \, \text{LoG} \]

Definition at line 86 of file DeWAFF.cpp.

◆ DeceivedNonLocalMeansFilter()

Mat DeWAFF::DeceivedNonLocalMeansFilter ( const Mat &  inputImage,
int  windowSize,
int  neighborhoodSize,
double  spatialSigma,
double  rangeSigma 
)

Apply a Deceived Non Local Means Filter to an image. Computationally demanding algorithm, can take as much as ten times more than the other filters in the framework.

Parameters
inputImageinput image
windowSizeprocessing window size, has to be odd numbered and greater or equal than 3
neighborhoodSizespatial standard deviation
spatialSigmarange or radiometric standard deviation
rangeSigmaoutput image
Returns

\[ Y_{\psi_{\text NLM}}(p) = \left( \sum_{m \subset \Omega} \psi_{\text NLM}(U, m, p) \right)^{-1} \left( \sum_{m \subset \Omega} \psi_{\text NLM}(U, p, m) \, \hat{f}_{\text USM}(m) \right) \]

where

\[ \hat{f}_{\text USM} = U + \lambda \, \text{LoG} \]

Definition at line 66 of file DeWAFF.cpp.

◆ DeceivedScaledBilateralFilter()

Mat DeWAFF::DeceivedScaledBilateralFilter ( const Mat &  inputImage,
int  windowSize,
double  spatialSigma,
double  rangeSigma 
)

Apply a Deceived Scaled Bilateral Filter to an image. Similar to the Deceived Bilateral Filter, but the weighting image is low pass filtered.

Parameters
inputImageinput image
windowSizeprocessing window size, has to be odd numbered and greater or equal than 3
spatialSigmaspatial standard deviation
rangeSigmarange or radiometric standard deviation
Returns

\[ Y_{\psi_{\text SBF}}(p) = \left( \sum_{m \subset \Omega} \psi_{\text SBF}(U^s, U, m, p) \right)^{-1} \left( \sum_{m \subset \Omega} \psi_{\text SBF}(U^s, U, m, p) \, \hat{f}_{\text USM}(m) \right) \]

where

\[ \hat{f}_{\text USM} = U + \lambda \, \text{LoG} \]

Definition at line 43 of file DeWAFF.cpp.


The documentation for this class was generated from the following files: