00001 #ifndef _DLSTROKEWIDTH_H_ 00002 #define _DLSTROKEWIDTH_H_ 00003 00004 #include "DLImage.h" 00005 00026 class DLStrokeWidth 00027 { 00028 public: 00029 00056 static double dlGetStrokeWidth(const DLImage& image, int minRunLength=3, 00057 float lowerThreshold=0.2, float upperThreshold=0.4) ; 00058 00059 00060 private: 00067 int _minRunLength; 00068 00073 double _runDistLowerThreshold; 00074 00079 double _runDistUpperThreshold; 00080 }; 00081 00082 00083 #endif 00084