/** * @file RSSlic.h * @brief SLIC Superpixels from "SLIC Superpixels Compared to State-of-the-art Superpixel Methods," * @author Björn Fröhlich * @date 02/02/2013 */ #ifndef RSSlicINCLUDE #define RSSlicINCLUDE #include "core/basics/Config.h" #include "RegionSegmentationMethod.h" namespace OBJREC { class RSSlic: public RegionSegmentationMethod { protected: int spcount; //number of regions double compactness; //value between 0 and 40 int regionsize; //average size of each region bool lab; //use lab space or not public: /** simple constructor */ RSSlic(); /** simple constructor */ RSSlic(double t); /** * standard constructor * @param conf config file */ RSSlic(const NICE::Config *conf ); /** simple destructor */ ~RSSlic(); /** * returns the regions of a given image * @param img input image * @param mask output regions, each region has it own number * @return count of region */ virtual int segRegions ( const NICE::Image & img, NICE::Matrix & mask ) const; /** * returns the regions of a given image * @param img input color image * @param mask output regions, each region has it own number * @return count of region */ virtual int segRegions ( const NICE::ColorImage & img, NICE::Matrix & mask) const; }; } //namespace #endif