123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- namespace OBJREC {
- class Image_tools
- {
- protected:
- public:
- /** simple constructor */
- Image_tools();
-
- ~Image_tools();
-
- void calculateGradients(
- const NICE::Image & origImage,
- NICE::ImageT<float> & grad_x_Image,
- NICE::ImageT<float> & grad_y_Image );
-
- void calculateGradients(
- NICE::ColorImage origColorImage,
- NICE::ImageT<float> & grad_x_Image,
- NICE::ImageT<float> & grad_y_Image );
-
- void calculateGradientOrientations(
- const NICE::ImageT<float> & grad_x_Image,
- const NICE::ImageT<float> & grad_y_Image,
- const int & number_Of_Bins,
- NICE::Image & gradient_orientations,
- const bool unsignedBins=true );
- void calculateGradientOrientations(
- const NICE::GrayImage16s & grad_x_Image,
- const NICE::GrayImage16s & grad_y_Image,
- const int & number_Of_Bins,
- NICE::Image & gradient_orientations,
- const bool unsignedBins=true );
-
- void calculateGradientMagnitudes(
- const NICE::ImageT<float> & grad_x_Image,
- const NICE::ImageT<float> & grad_y_Image,
- NICE::ImageT<float> & gradient_magnitudes );
-
- std::vector<float> normalizeBlockDescriptor(
- const std::vector<float> & orig_Block_Descriptor,
- const float epsilon = 0.01 );
-
- std::vector< std::vector<float> > calculateResultingHogFeatures(
- const NICE::Image & gradient_orientations,
- const NICE::ImageT<float> & gradient_magnitudes,
- const int & blocksize = 2,
- const int & cellsize = 8 );
- };
- }
|