123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- namespace OBJREC {
- class RSGraphBased: public RegionSegmentationMethod
- {
- protected:
-
- /////////////////////////
- /////////////////////////
- // PROTECTED VARIABLES //
- /////////////////////////
- /////////////////////////
-
- double parameter_k;
-
- int parameter_min_size;
-
- double parameter_sigma;
- public:
-
-
-
-
-
-
- RSGraphBased();
-
- RSGraphBased( const NICE::Config * _conf );
-
- virtual ~RSGraphBased();
-
-
-
- virtual void initFromConfig ( const NICE::Config * _conf, const std::string & _confSection = "RSGraphBased" );
-
-
-
-
-
- virtual int segRegions ( const NICE::Image & img, NICE::Matrix & mask ) const;
-
- virtual int segRegions ( const NICE::ColorImage & img, NICE::Matrix & mask) const;
-
-
-
-
-
-
-
- void restore ( std::istream & is, int format = 0 );
-
-
-
- void store ( std::ostream & os, int format = 0 ) const;
-
-
-
- void clear ();
- };
- }
|