GenericImageTools.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @file GenericImageTools.h
  3. * @brief simple filter stuff
  4. * @author Erik Rodner
  5. * @date 07/30/2008
  6. */
  7. #ifndef GENERICIMAGETOOLSINCLUDE
  8. #define GENERICIMAGETOOLSINCLUDE
  9. #include "core/image/MultiChannelImageT.h"
  10. namespace OBJREC {
  11. /** simple filter stuff */
  12. class GenericImageTools
  13. {
  14. public:
  15. /**
  16. * calculates the integral image.
  17. *
  18. * note: result integral image has same dimensions as the source image -
  19. * the size is NOT extended by a new 0-row and 0-column as is done in cv::integral.
  20. *
  21. */
  22. template <class PixelValueDst, class PixelValueSrc>
  23. static void calcIntegralImage ( NICE::ImageT<PixelValueDst> &integralImage, const NICE::ImageT<PixelValueSrc> &image, int xsize, int ysize );
  24. template <class PixelValueDst, class PixelValueSrc>
  25. static void nonMaximumSuppression ( NICE::ImageT<PixelValueDst> &dst, const NICE::ImageT<PixelValueSrc> &src, int xsize, int ysize, bool useEightConnectivity = true );
  26. };
  27. #include "GenericImageTools.tcc"
  28. } // namespace
  29. #endif