00001
00029 #ifndef Chamfer2D_5x5_h
00030 #define Chamfer2D_5x5_h
00031
00032 #include "DistanceTransform.h"
00033
00035 class Chamfer2D_5x5 : public DistanceTransform {
00036
00037 public:
00038 Chamfer2D_5x5 ( const int xSize, const int ySize, const bool unload=true )
00039 : DistanceTransform(xSize, ySize, unload)
00040 {
00041 }
00042
00047 void doTransform ( const unsigned char* const I ) {
00048 doTransform(I, 5, 7, 11, true);
00049 }
00050
00051 void doTransform ( const unsigned char* const I, const int a,
00052 const int b, const int c,
00053 const bool halfIsZero );
00054
00055 private:
00056 void borderCheck ( const unsigned char* const I );
00057
00058 };
00059
00060 #endif
00061
00062