#include <RdivergentROF.hpp>
Inheritance diagram for RdivergentROF:


Purpose: Test preservation of 2nd order in TV norme restoration.
Paper: "Mathematical models for Local Deterministic Inpaintings.",
page 15 to 23
Tony Chan & Jianhong Shen , Report 1999, UCLA.
Purpose: Second order filter like the Rudin/Osher/Fatemi filter are very
good denoiser. But is some application, to much details are destroyed.
Also, second order filters introduce a staircase effect in images.
(like linear steps). Higher order filters can better maintain
non-linear information and details, this happens at the cost of
maintaining some noise. This is a tradeoff, your choice, or perhaps
we may need a kind of "linearity" indicator to decide what type of local restoration
should be used.
Compute the divergent on a 1/2,1/2 stencil from 1,1 stencil
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
| RdivergentROF (int n, double rdt) | |
| RdivergentROF (int n, double rdt, double alambda0) | |
| virtual | ~RdivergentROF () |
| virtual RImage * | filter (RImage *src, RImage *dest=0) |
| Local full image filtering. | |
| virtual RImage * | selectedFilter (AnImage *mask, RImage *src, RImage *dest=0) |
| Local filtering in a mask area. | |
| virtual void | report (FILE *file) |
Protected Methods | |
| virtual void | channelConstrain () |
| virtual void | channelConstrain (AnImage &mask) |
| virtual double | divergent (RImage *im, int x, int y) |
| virtual double | operation (RImage *im, int x, int y) |
| virtual void | operations (RImage *result) |
| virtual void | operations (AnImage &mask, RImage *result) |
Protected Attributes | |
| RImage * | I0 |
| RImage * | I |
| bool | lambdaDynamic |
| double | lambda |
| double | epsilon2 |
| double | dt |
| int | niterations |
| double | sumI0_1 |
| double | sumI0_2 |
| double | I0mean |
| double | I0sigma |
|
||||||||||||
|
Local full image filtering.
Implements AbsRImageFilter. |
|
||||||||||||||||
|
Local filtering in a mask area.
Reimplemented from AbsRImageFilter. |
![]() |
