1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef FastFilterINCLUDE
- #define FastFilterINCLUDE
- namespace OBJREC {
- class FastFilter
- {
- public:
-
- template <class GrayValueType, class GradientMagnitudeType, class GradientDirectionType>
- static void calcGradient (
- const GrayValueType *gray,
- int xsize, int ysize,
- GradientMagnitudeType *gradient,
- GradientDirectionType *dir,
- int numBins,
- bool usesigned );
-
- template <class GrayValueType, class GradientMagnitudeType, class GradientDirectionType>
- static void calcColorGradient (
- const GrayValueType *r,
- const GrayValueType *g,
- const GrayValueType *b,
- int xsize, int ysize,
- GradientMagnitudeType *gradient,
- GradientDirectionType *dir,
- int numBins,
- bool usesigned );
- template <class SrcValueType, class DstValueType>
- static void calcGradientY ( const SrcValueType *img, int xsize, int ysize, DstValueType *d );
- template <class SrcValueType, class DstValueType>
- static void calcGradientX ( const SrcValueType *img, int xsize, int ysize, DstValueType *d );
-
-
- template <class GrayValueType, class OrientedGradientHistogramType>
- static void calcOrientedGradientHistogram ( const GrayValueType *gray,
- int xsize, int ysize,
- OrientedGradientHistogramType *hog,
- int numBins,
- bool usesigned );
- };
- }
- #include "FastFilter.tcc"
- #endif
|