HXLDExtPara.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /***********************************************************
  2. * File generated by the HALCON-Compiler hcomp version 20.11
  3. * Usage: Interface to C++
  4. *
  5. * Software by: MVTec Software GmbH, www.mvtec.com
  6. ***********************************************************/
  7. #ifndef HCPP_HXLDEXTPARA
  8. #define HCPP_HXLDEXTPARA
  9. namespace HalconCpp
  10. {
  11. // Represents an instance of an XLD extended parallel object(-array).
  12. class LIntExport HXLDExtPara : public HXLD
  13. {
  14. public:
  15. // Create an uninitialized instance
  16. HXLDExtPara():HXLD() {}
  17. // Copy constructor
  18. HXLDExtPara(const HXLDExtPara& source) : HXLD(source) {}
  19. // Copy constructor
  20. HXLDExtPara(const HObject& object);
  21. // Create HXLDExtPara from object id. For copy=false takes
  22. // over management of input key. Type of key must match!
  23. explicit HXLDExtPara(Hkey key, bool copy=true);
  24. // Access of object tuple element
  25. const HXLDExtPara operator [] (Hlong index) const;
  26. /***************************************************************************
  27. * Operators *
  28. ***************************************************************************/
  29. // Join modified XLD parallels lying on the same polygon.
  30. HXLDPoly MaxParallelsXld() const;
  31. // Calculate the difference of two object tuples.
  32. HXLDExtPara ObjDiff(const HXLDExtPara& ObjectsSub) const;
  33. // Copy an iconic object in the HALCON database.
  34. HXLDExtPara CopyObj(Hlong Index, Hlong NumObj) const;
  35. // Concatenate two iconic object tuples.
  36. HXLDExtPara ConcatObj(const HXLDExtPara& Objects2) const;
  37. // Select objects from an object tuple.
  38. HXLDExtPara SelectObj(const HTuple& Index) const;
  39. // Select objects from an object tuple.
  40. HXLDExtPara SelectObj(Hlong Index) const;
  41. // Compare iconic objects regarding equality.
  42. Hlong CompareObj(const HXLDExtPara& Objects2, const HTuple& Epsilon) const;
  43. // Compare iconic objects regarding equality.
  44. Hlong CompareObj(const HXLDExtPara& Objects2, double Epsilon) const;
  45. // Compare image objects regarding equality.
  46. Hlong TestEqualObj(const HXLDExtPara& Objects2) const;
  47. // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
  48. HImage GenGridRectificationMap(const HImage& Image, HXLDExtPara* Meshes, Hlong GridSpacing, const HTuple& Rotation, const HTuple& Row, const HTuple& Column, const HString& MapType) const;
  49. // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
  50. HImage GenGridRectificationMap(const HImage& Image, HXLDExtPara* Meshes, Hlong GridSpacing, const HString& Rotation, const HTuple& Row, const HTuple& Column, const HString& MapType) const;
  51. // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
  52. HImage GenGridRectificationMap(const HImage& Image, HXLDExtPara* Meshes, Hlong GridSpacing, const char* Rotation, const HTuple& Row, const HTuple& Column, const char* MapType) const;
  53. #ifdef _WIN32
  54. // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
  55. HImage GenGridRectificationMap(const HImage& Image, HXLDExtPara* Meshes, Hlong GridSpacing, const wchar_t* Rotation, const HTuple& Row, const HTuple& Column, const wchar_t* MapType) const;
  56. #endif
  57. // Choose all contours or polygons containing a given point.
  58. HXLDExtPara SelectXldPoint(const HTuple& Row, const HTuple& Column) const;
  59. // Choose all contours or polygons containing a given point.
  60. HXLDExtPara SelectXldPoint(double Row, double Column) const;
  61. // Select contours or polygons using shape features.
  62. HXLDExtPara SelectShapeXld(const HTuple& Features, const HString& Operation, const HTuple& Min, const HTuple& Max) const;
  63. // Select contours or polygons using shape features.
  64. HXLDExtPara SelectShapeXld(const HString& Features, const HString& Operation, double Min, double Max) const;
  65. // Select contours or polygons using shape features.
  66. HXLDExtPara SelectShapeXld(const char* Features, const char* Operation, double Min, double Max) const;
  67. #ifdef _WIN32
  68. // Select contours or polygons using shape features.
  69. HXLDExtPara SelectShapeXld(const wchar_t* Features, const wchar_t* Operation, double Min, double Max) const;
  70. #endif
  71. // Transform the shape of contours or polygons.
  72. HXLDExtPara ShapeTransXld(const HString& Type) const;
  73. // Transform the shape of contours or polygons.
  74. HXLDExtPara ShapeTransXld(const char* Type) const;
  75. #ifdef _WIN32
  76. // Transform the shape of contours or polygons.
  77. HXLDExtPara ShapeTransXld(const wchar_t* Type) const;
  78. #endif
  79. // Insert objects into an iconic object tuple.
  80. HXLDExtPara InsertObj(const HXLDExtPara& ObjectsInsert, Hlong Index) const;
  81. // Remove objects from an iconic object tuple.
  82. HXLDExtPara RemoveObj(const HTuple& Index) const;
  83. // Remove objects from an iconic object tuple.
  84. HXLDExtPara RemoveObj(Hlong Index) const;
  85. // Replaces one or more elements of an iconic object tuple.
  86. HXLDExtPara ReplaceObj(const HXLDExtPara& ObjectsReplace, const HTuple& Index) const;
  87. // Replaces one or more elements of an iconic object tuple.
  88. HXLDExtPara ReplaceObj(const HXLDExtPara& ObjectsReplace, Hlong Index) const;
  89. private:
  90. // Verify matching semantic type ('xld_ext_para')!
  91. void AssertObjectClass();
  92. };
  93. }
  94. #endif