00001 #ifndef __DistanceFastSweepingOp__ 00002 #define __DistanceFastSweepingOp__ 00003 00004 00005 00034 #include <stdio.h> 00035 #include <math.h> 00036 00037 #include "AbsEikonalFastSweepingOp.hpp" 00038 00039 00040 class DistanceFastSweepingOp : public AbsEikonalFastSweepingOp 00041 { 00042 protected: 00043 00044 double R; // HJ model 00045 00046 protected: 00047 00048 virtual double getPotential_h(int i, int j){ return R; } // fXY*h= 1.0*1.0 Distance map 00049 00050 public: 00051 00052 DistanceFastSweepingOp(int iter=1, double Rx=1.0 ):AbsEikonalFastSweepingOp(iter, 1.0){ R=Rx; } 00053 virtual ~DistanceFastSweepingOp(){} 00054 00055 virtual void report(FILE* file){ fprintf(file,"Distance Fast Sweeping Operator\n"); } 00056 }; 00057 00058 00059 #endif