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

HJFastSweepingOp Class Reference

#include <HJFastSweepingOp.hpp>

Inheritance diagram for HJFastSweepingOp:

Inheritance graph
[legend]
Collaboration diagram for HJFastSweepingOp:

Collaboration graph
[legend]
List of all members.

Detailed Description

HJ Fast Sweeping.

Author:
Bernard De Cuyper
Version:
0.05
Date:
16/11/2003
 
Purpose:        Computation distance via HJ Fast Sweeping in O(N).

Paper:  "Fast Sweeping Methods for static Hamilton-Jacobi Equations.", 
                        C.Y. Kao, S. Osher, Y-H. Tsai, Report CAM 02-66, UCLA 2002.

                "Fast Sweeping Algorithms for a Class of Hamilton-Jacobi Equations.", 
                        Y-H. Tsai, L-T. Cheng, S. Osher, H-K. Zhao, Report UCLA 2002.

                

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


Public Methods

 HJFastSweepingOp (double ax=1.0, double bx=1.0, double cx=0.0, double Rx=1.0)
virtual ~HJFastSweepingOp ()
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 init (RImage *psi)
void updatePsi (RImage *psiNew, int i, int j)
void updatePsi (RImage *psi, int i, int j, int sx, int sy)
void solvePsi (RImage *psi, int i, int j, int sx, int sy, double m)

Private Attributes

int maxIter
double a
double b
double c
double R
double h
int width
int height
int count
double psiCandidate [4]
double pi_2
double ab_c2
double m2_ab_c2
double asx_csy
double bsy_csx
double borneSxLow
double borneSxUp
double borneSyLow
double borneSyUp


Member Function Documentation

RImage * HJFastSweepingOp::filter RImage   src,
RImage   dest = 0
[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 * HJFastSweepingOp::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