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

SimilarPixelFMM Class Reference

#include <SimilarPixelFMM.hpp>

Inheritance diagram for SimilarPixelFMM:

Inheritance graph
[legend]
Collaboration diagram for SimilarPixelFMM:

Collaboration graph
[legend]
List of all members.

Detailed Description

Distance based Fast Marching Method.

Author:
Bernard De Cuyper
Version:
0.05
Date:
15/06/2002
 
Purpose:        Define a Fast Marching Method applied for direct distance maps
                        and distance based data feeding. (e.g.: OUT/IN tactic, and more)
                        Extensions to three dimension is obvious. My computer is too small
                        for 3D.                                                 

Note:           We may inherit from AnImageOp, but we think there is much more
                        in the fast marching that simply filtering and distance maps.
                        It is simply a fantastic idea of Sethian & all.

Paper:          "Optimal Algorithm for Shape from Shading and Path Planning.", 
                        Ron Kimmel, James A. Sethian, Kluweer Academic Publishers 2001 , Netherlands.
                

Bug:
last pixel is not selected

@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.


Public Methods

 SimilarPixelFMM ()
virtual ~SimilarPixelFMM ()
virtual void setPotential (ImagePotential *pot)
 You may want to load the image part too, for advanced Fast Marching.

virtual ImagePotentialgetPotential ()
virtual void setInitiator (int x, int y)
virtual void setData (AnImage *im)
 You may want to load the image part too, for advanced Fast Marching.

virtual RImagecompute (RImage *dest=0)
 multiple FMM iterations

virtual AnImagefilter (AnImage *mask, AnImage *dest=0)
 like an image op generate a variant of a distance map or more

virtual AnImageselectedFilter (AnImage *mask, AnImage *src, AnImage *dest=0)
 Local filtering in a mask area.

virtual void report ()

Protected Methods

virtual double getPotential (int i, int j)
 return a local potential value


Protected Attributes

int x0
int y0
bool distanceGrowingFlag
ImagePotentialpotential


Member Function Documentation

virtual AnImage* SimilarPixelFMM::selectedFilter AnImage   mask,
AnImage   src,
AnImage   dest = 0
[inline, virtual]
 

Local filtering in a mask area.

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

Reimplemented from DistanceFMM.


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