Browse Source

virtual destructors for regionSegmentationClasses

Alexander Freytag 11 years ago
parent
commit
68b31ddee2
6 changed files with 6 additions and 6 deletions
  1. 1 1
      RSCache.h
  2. 1 1
      RSGraphBased.h
  3. 1 1
      RSMarkovCluster.h
  4. 1 1
      RSMeanShift.h
  5. 1 1
      RSSlic.h
  6. 1 1
      RegionSegmentationMethod.h

+ 1 - 1
RSCache.h

@@ -33,7 +33,7 @@ class RSCache: public RegionSegmentationMethod
     RSCache ( const NICE::Config *conf, RegionSegmentationMethod *_rsmethod );
 
     /** simple destructor */
-    ~RSCache();
+    virtual ~RSCache();
 
     /**
      * returns the regions of a given image

+ 1 - 1
RSGraphBased.h

@@ -34,7 +34,7 @@ class RSGraphBased: public RegionSegmentationMethod
     RSGraphBased(const NICE::Config *conf );
 
     /** simple destructor */
-    ~RSGraphBased();
+    virtual ~RSGraphBased();
 
     /**
      * returns the regions of a given image

+ 1 - 1
RSMarkovCluster.h

@@ -77,7 +77,7 @@ class RSMarkovCluster : public RegionSegmentationMethod
     RSMarkovCluster ( const NICE::Config* conf );
 
     //! Standard-Destruktor
-    ~RSMarkovCluster() {};
+    virtual ~RSMarkovCluster() {};
 
     /* Ueberschriebene Methoden */
     /**

+ 1 - 1
RSMeanShift.h

@@ -46,7 +46,7 @@ class RSMeanShift: public RegionSegmentationMethod
     RSMeanShift(const NICE::Config *conf );
 
     /** simple destructor */
-    ~RSMeanShift();
+    virtual ~RSMeanShift();
 
     /**
      * returns the regions of a given image

+ 1 - 1
RSSlic.h

@@ -35,7 +35,7 @@ public:
     RSSlic(const NICE::Config *conf );
 
     /** simple destructor */
-    ~RSSlic();
+    virtual ~RSSlic();
 
     /**
      * returns the regions of a given image

+ 1 - 1
RegionSegmentationMethod.h

@@ -34,7 +34,7 @@ class RegionSegmentationMethod
     RegionSegmentationMethod(const NICE::Config *c );
 
     /** simple destructor */
-    ~RegionSegmentationMethod();
+    virtual ~RegionSegmentationMethod();
 
     /**
      * returns the regions of a given image