Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

RCDDInpainter Class Reference

#include <RCDDInpainter.hpp>

Inheritance diagram for RCDDInpainter:

Inheritance graph
[legend]
Collaboration diagram for RCDDInpainter:

Collaboration graph
[legend]
List of all members.

Detailed Description

Curvature Diffusion Driven Inpainting.

Author:
Bernard De Cuyper
Version:
0.05
Date:
10/06/2002
 
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 RImagefilter (RImage *src, RImage *dest=0)
 Local full image filtering.

virtual RImageselectedFilter (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
RImageI0
RImageI
RImageguxNorme
RImageguyNorme
double kX
double kY
double kNorme
double ux2
double uy2
double gu2Norme
double ux2Norme
double uy2Norme


Member Function Documentation

virtual RImage* RCDDInpainter::filter RImage   src,
RImage   dest = 0
[inline, virtual]
 

Local full image filtering.

Parameters:
src  is RImage* is RImage source channel
dest  is RImage* is RImage result/placeholder
Returns :
RImage* as result,

Implements AbsRImageFilter.

RImage * RCDDInpainter::selectedFilter AnImage   mask,
RImage   src,
RImage   dest = 0
[virtual]
 

Local filtering in a mask area.

Parameters:
mask  is AnImage* is a ByteImage
src  is RImage* is RImage source channel
dest  is RImage* is RImage result/placeholder
Returns :
RImage* as result,

Reimplemented from AbsRImageFilter.


The documentation for this class was generated from the following files:
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com