IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HuMomentsTypes.h
Go to the documentation of this file.
1 // HuMomentsTypes.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_HUMOMENTSTYPES_H__
16 #define __IPSDKGEOMETRY_HUMOMENTSTYPES_H__
17 
21 
22 namespace ipsdk {
23 namespace geom {
24 
27 
29 
31  (eSDT_Type1)
32 
35 
37  (eSDT_Type3)
38 )
39 
40 
41 struct MatchShapeInfo {
45 
48 };
49 
54 
57 };
58 
61 
62 } // end of namespace geom
63 } // end of namespace ipsdk
64 
67 
68 namespace ipsdk {
69 
70  static std::ostream&
71  operator<< (std::ostream& os, const ipsdk::geom::MatchShapeInfo& matchShapeInfo)
72  {
73  os << "(" << matchShapeInfo._shapeIdx << ", " << matchShapeInfo._shapeHuDistance << ")";
74  return os;
75  }
76 }
77 
78 #endif // __IPSDKGEOMETRY_HUMOMENTSTYPES_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::vector< ipUInt32 > UInt32Vector
stl vector collections
Definition: BaseCollections.h:33
std::vector< ipReal64 > Real64Vector
stl vector collections
Definition: BaseCollections.h:37
eShapeHuDistanceType
Definition: HuMomentsTypes.h:30
Type 3 : maximum of the nomalized differences.
Definition: HuMomentsTypes.h:36
Match of some shapes.
Definition: HuMomentsTypes.h:51
UInt32Vector _shapesIdx
Index of the matched shapes.
Definition: HuMomentsTypes.h:53
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Definition of import/export macro for library.
Match of a shape.
Definition: HuMomentsTypes.h:42
Type 1 : Sum of absolute difference of the inverse values.
Definition: HuMomentsTypes.h:32
ipsdk::ipReal64 _shapeHuDistance
Distance between the shape of interest and the matched shape.
Definition: HuMomentsTypes.h:47
Predefined base collection types for library.
Real64Vector _shapesHuDistance
Distance between shape of interest and the matched shapes.
Definition: HuMomentsTypes.h:56
IPSDKBASESHAPEANALYSIS_API ipsdk::BaseOArchive & operator<<(ipsdk::BaseOArchive &ar, const ipsdk::SerializationOItem< ipsdk::shape::analysis::MeasureId > &item)
serialization of ipsdk::shape::analysis::MeasureId structure
Type 2 : Sum of absolute difference.
Definition: HuMomentsTypes.h:34
Predefined macros for enumerates management.
ipsdk::ipUInt32 _shapeIdx
Index of the matched shape.
Definition: HuMomentsTypes.h:44
#define IPSDK_ENUM(enumTypeStr, enumSeq)
macro allowing to declare an enumerate for library
Definition: EnumMacros.h:26
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53