CBlobFeature.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // ACF includes
5 #include <i2d/CPosition2d.h>
7 
8 // ACF-Solutions includes
9 #include <iipr/CObjectFeature.h>
10 
11 
12 namespace iblob
13 {
14 
15 
20 {
21 public:
23 
24  CBlobFeature();
26  double area,
27  double perimeter,
28  const i2d::CVector2d& position,
29  double angle = 0.0);
30 
31  double GetCircularity() const;
32  double GetCompactness() const;
33  double GetPerimeter() const;
34  double GetArea() const;
35 
36  // reimplemented (iser::ISerializable)
37  virtual bool Serialize(iser::IArchive& archive);
38 
39  // reimplemented (istd::IChangeable)
40  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
41  virtual istd::IChangeable* CloneMe(CompatibilityMode mode = CM_WITHOUT_REFS) const;
42 
43 private:
44  double m_area;
45  double m_perimeter;
46 };
47 
48 
49 } // namespace iblob
50 
51 
iipr::CObjectFeature BaseClass
Definition: CBlobFeature.h:22
double GetCompactness() const
double GetPerimeter() const
double GetArea() const
virtual istd::IChangeable * CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const
virtual bool Serialize(iser::IArchive &archive)
Implementation of the blob-based feature.
Definition: CBlobFeature.h:19
Implementation of a general image object feature.
double GetCircularity() const
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)

© 2007-2017 Witold Gantzke and Kirill Lepskiy