|
DeWAFF
Deceived Weighted Average Filters Framework Image abstraction algorithm implementation in C++
|
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 |
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.
| 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.
| inputImage | input image |
| windowSize | processing window size, has to be odd numbered and greater or equal than 3 |
| spatialSigma | spatial standard deviation |
| rangeSigma | range or radiometric standard deviation |
\[ 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.
| 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.
| inputImage | input image |
| windowSize | processing window size, has to be odd numbered and greater or equal than 3 |
| spatialSigma | spatial standard deviation |
| rangeSigma | range or radiometric standard deviation |
\[ 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.
| 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.
| inputImage | input image |
| windowSize | processing window size, has to be odd numbered and greater or equal than 3 |
| neighborhoodSize | spatial standard deviation |
| spatialSigma | range or radiometric standard deviation |
| rangeSigma | output image |
\[ 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.
| 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.
| inputImage | input image |
| windowSize | processing window size, has to be odd numbered and greater or equal than 3 |
| spatialSigma | spatial standard deviation |
| rangeSigma | range or radiometric standard deviation |
\[ 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.