#include <RCDDInpainter.hpp>
Inheritance diagram for RCDDInpainter:
Purpose: Curvature Diffusion Driven Inpainting. Explain the importance of normal diffusion in inpainting Paper: "Non-Texture Inpainting by Curvature-Driven Diffusion (CDD).", Tony F. Chan & J. Shen, Report UCLA 2000.
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
RCDDInpainter (bool optimized=false, double deltaT=0.2) | |
virtual | ~RCDDInpainter () |
virtual void | prepare (RImage *src) |
used to globally maintain subimages avoiding cons | |
virtual void | clear () |
used to globally destroy subimages avoiding decons | |
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 | |
void | precompute () |
void | computeGradient (int x, int y, int idx, int idy) |
void | computeCurvature (int x, int y, int idx, int idy) |
double | g (double value) |
double | getJ (int x, int y, int idx, int idy) |
double | divergentJ (int x, int y) |
Private Attributes | |
bool | optimisation |
double | dt |
RImage * | I0 |
RImage * | I |
RImage * | guxNorme |
RImage * | guyNorme |
double | kX |
double | kY |
double | kNorme |
double | ux2 |
double | uy2 |
double | gu2Norme |
double | ux2Norme |
double | uy2Norme |
|
Local full image filtering.
Implements AbsRImageFilter. |
|
Local filtering in a mask area.
Reimplemented from AbsRImageFilter. |