00001 #ifndef _DLProfile_H_ 00002 #define _DLProfile_H_ 00003 00004 #include "DLImage.h" 00005 #include "DLBitsPerPixelConverter.h" 00006 00007 #include <cmath> 00008 00012 class DLProfile 00013 { 00014 public: 00019 DLProfile(); 00020 00024 ~DLProfile(); 00030 enum DLProjectionDirection { 00031 DL_HORIZONTAL = 1, 00032 DL_VERTICAL = 2 00033 }; 00034 00047 static vector<int> dlProjectProfile ( const DLImage & image, DLProjectionDirection direction ); 00048 00057 static vector<int> dlProjectHorizontalProfile ( const DLImage & image ); 00058 00067 static vector<int> dlProjectVerticalProfile ( const DLImage & image ); 00068 00069 private: 00070 00071 };//end class 00072 00073 #endif //_DLProfile_H_