RSGraphBased.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @file RSGraphBased.h
  3. * @brief fast Segmentation Method based on Felzenszwalb2004
  4. * @author Björn Fröhlich
  5. * @date 02/22/2010
  6. */
  7. #ifndef RSGraphBasedINCLUDE
  8. #define RSGraphBasedINCLUDE
  9. #include "core/basics/Config.h"
  10. #include "RegionSegmentationMethod.h"
  11. namespace OBJREC {
  12. class RSGraphBased: public RegionSegmentationMethod
  13. {
  14. protected:
  15. double parameter_k;
  16. int parameter_min_size;
  17. double parameter_sigma;
  18. public:
  19. /** simple constructor */
  20. RSGraphBased();
  21. /** simple constructor */
  22. RSGraphBased(double t);
  23. /**
  24. * standard constructor
  25. * @param conf config file
  26. */
  27. RSGraphBased(const NICE::Config *conf );
  28. /** simple destructor */
  29. ~RSGraphBased();
  30. /**
  31. * returns the regions of a given image
  32. * @param img input image
  33. * @param mask output regions, each region has it own number
  34. * @return count of region
  35. */
  36. virtual int segRegions ( const NICE::Image & img, NICE::Matrix & mask ) const;
  37. /**
  38. * returns the regions of a given image
  39. * @param img input color image
  40. * @param mask output regions, each region has it own number
  41. * @return count of region
  42. */
  43. virtual int segRegions ( const NICE::ColorImage & img, NICE::Matrix & mask) const;
  44. };
  45. } //namespace
  46. #endif