00001 00029 #ifndef Cityblock2D_h 00030 #define Cityblock2D_h 00031 00032 #include "DistanceTransform.h" 00033 //---------------------------------------------------------------------- 00035 class Cityblock2D : public DistanceTransform { 00036 00037 public: 00038 Cityblock2D ( const int xSize, const int ySize, const bool unload=true ) 00039 : DistanceTransform(xSize, ySize, unload) 00040 { 00041 } 00042 00043 void doTransform ( const unsigned char* const I ) { 00044 doTransform(I, true); 00045 } 00046 00047 void doTransform ( const unsigned char* const I, 00048 const bool halfIsZero ); 00049 00050 }; 00051 00052 #endif 00053 //---------------------------------------------------------------------- 00054
1.4.5