CSearchParams.h
Go to the documentation of this file.
1 #ifndef iipr_CSearchParams_included
2 #define iipr_CSearchParams_included
3 
4 
5 // ACF includes
6 #include "iimg/CGeneralBitmap.h"
7 
8 // ACF-Solutions includes
9 #include "iipr/ISearchParams.h"
10 
11 
12 namespace iipr
13 {
14 
15 
19 class CSearchParams: virtual public iipr::ISearchParams
20 {
21 public:
22  CSearchParams();
23 
24  // reimplemented (iipr::ISearchParams)
25  virtual const ISearchConstraints* GetSearchConstraints() const;
26  virtual double GetMinScore() const;
27  virtual void SetMinScore(double minScore);
28  virtual const istd::CRange& GetRotationRange() const;
29  virtual void SetRotationRange(const istd::CRange& angleRange);
30  virtual const istd::CRange& GetScaleRange() const;
31  virtual void SetScaleRange(const istd::CRange& scaleRange);
32  virtual int GetNominalModelsCount() const;
33  virtual void SetNominalModelsCount(int nominalModelsCount);
34  virtual bool IsRotationEnabled() const;
35  virtual void SetRotationEnabled(bool isRotationEnabled);
36  virtual bool IsScaleEnabled() const;
37  virtual void SetScaleEnabled(bool isScaleEnabled);
38 
39  // reimplemented (iser::ISerializable)
40  virtual bool Serialize(iser::IArchive & archive);
41 
42 protected:
46  double m_minScore;
49 };
50 
51 
52 } // namespace iipr
53 
54 
55 #endif // !iipr_CSearchParams_included
56 
57 
virtual const ISearchConstraints * GetSearchConstraints() const
Get constraints for the search parameters.
istd::CRange m_angleRange
Definition: CSearchParams.h:43
virtual double GetMinScore() const
Get minimum score for a succefull search.
virtual const istd::CRange & GetScaleRange() const
Get scale range for the model search.
Common interface for a set of parameters for a model search.
Definition: ISearchParams.h:21
Definition of standard search parameters.
Definition: CSearchParams.h:19
virtual void SetMinScore(double minScore)
Set minimum score for a succefull search.
virtual void SetNominalModelsCount(int nominalModelsCount)
Set the number of models that should be found for a successfull search result.
virtual const istd::CRange & GetRotationRange() const
Get rotation range for the model search.
virtual void SetRotationRange(const istd::CRange &angleRange)
Set rotation range for the model search.
virtual bool IsScaleEnabled() const
virtual bool IsRotationEnabled() const
Interface for search algorithm limitations.
virtual void SetRotationEnabled(bool isRotationEnabled)
virtual void SetScaleRange(const istd::CRange &scaleRange)
Set scale range for the model search.
virtual void SetScaleEnabled(bool isScaleEnabled)
virtual int GetNominalModelsCount() const
Get the number of models that should be found for a successfull search result.
virtual bool Serialize(iser::IArchive &archive)
istd::CRange m_scaleRange
Definition: CSearchParams.h:44

© 2007-2011 Witold Gantzke and Kirill Lepskiy