123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- namespace OBJREC {
- class RegionSegmentationMethod : public NICE::Persistent
- {
- protected:
- /////////////////////////
- /////////////////////////
- // PROTECTED VARIABLES //
- /////////////////////////
- /////////////////////////
- // const NICE::Config *conf;
- public:
-
-
-
-
-
- RegionSegmentationMethod();
-
- RegionSegmentationMethod( const NICE::Config *c );
-
- virtual ~RegionSegmentationMethod();
-
-
-
- virtual void initFromConfig ( const NICE::Config * _conf, const std::string & _confSection = "RegionSegmentation" );
-
-
-
-
-
- virtual int segRegions ( const NICE::Image & img, NICE::Matrix & mask ) const = 0;
-
- virtual int segRegions ( const NICE::ColorImage & cimg, NICE::Matrix & mask) const;
-
- virtual int segRegions (const NICE::MultiChannelImage3DT<double> & img, NICE::MultiChannelImageT<int> & mask, const int isGray) const;
-
- int transformSegmentedImg( const NICE::ColorImage & img, NICE::Matrix & mask) const;
-
- void getGraphRepresentation(const NICE::ColorImage & cimg, NICE::Matrix & mask, RegionGraph & rg);
-
-
-
- void markContours ( const NICE::ColorImage & cimg, NICE::Matrix & mask, std::vector<int> &color, NICE::ColorImage &marked );
-
- void visualizeGraphRepresentation(const NICE::ColorImage & cimg, NICE::Matrix & mask);
-
-
-
-
-
-
- void restore ( std::istream & is, int format = 0 ) = 0;
-
-
-
- void store ( std::ostream & os, int format = 0 ) const = 0;
-
-
-
- void clear () = 0;
- };
- }
|