HXLDModPara.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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_HXLDMODPARA
  8. #define HCPP_HXLDMODPARA
  9. namespace HalconCpp
  10. {
  11. // Represents an instance of an XLD modified parallel object(-array).
  12. class LIntExport HXLDModPara : public HXLD
  13. {
  14. public:
  15. // Create an uninitialized instance
  16. HXLDModPara():HXLD() {}
  17. // Copy constructor
  18. HXLDModPara(const HXLDModPara& source) : HXLD(source) {}
  19. // Copy constructor
  20. HXLDModPara(const HObject& object);
  21. // Create HXLDModPara from object id. For copy=false takes
  22. // over management of input key. Type of key must match!
  23. explicit HXLDModPara(Hkey key, bool copy=true);
  24. // Access of object tuple element
  25. const HXLDModPara operator [] (Hlong index) const;
  26. /***************************************************************************
  27. * Operators *
  28. ***************************************************************************/
  29. // Combine road hypotheses from two resolution levels.
  30. HXLDPoly CombineRoadsXld(const HXLDPoly& EdgePolygons, const HXLDExtPara& ExtParallels, const HXLDPoly& CenterLines, const HTuple& MaxAngleParallel, const HTuple& MaxAngleColinear, const HTuple& MaxDistanceParallel, const HTuple& MaxDistanceColinear) const;
  31. // Combine road hypotheses from two resolution levels.
  32. HXLDPoly CombineRoadsXld(const HXLDPoly& EdgePolygons, const HXLDExtPara& ExtParallels, const HXLDPoly& CenterLines, double MaxAngleParallel, double MaxAngleColinear, double MaxDistanceParallel, double MaxDistanceColinear) const;
  33. // Calculate the difference of two object tuples.
  34. HXLDModPara ObjDiff(const HXLDModPara& ObjectsSub) const;
  35. // Copy an iconic object in the HALCON database.
  36. HXLDModPara CopyObj(Hlong Index, Hlong NumObj) const;
  37. // Concatenate two iconic object tuples.
  38. HXLDModPara ConcatObj(const HXLDModPara& Objects2) const;
  39. // Select objects from an object tuple.
  40. HXLDModPara SelectObj(const HTuple& Index) const;
  41. // Select objects from an object tuple.
  42. HXLDModPara SelectObj(Hlong Index) const;
  43. // Compare iconic objects regarding equality.
  44. Hlong CompareObj(const HXLDModPara& Objects2, const HTuple& Epsilon) const;
  45. // Compare iconic objects regarding equality.
  46. Hlong CompareObj(const HXLDModPara& Objects2, double Epsilon) const;
  47. // Compare image objects regarding equality.
  48. Hlong TestEqualObj(const HXLDModPara& Objects2) 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, HXLDModPara* Meshes, Hlong GridSpacing, const HTuple& 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, HXLDModPara* Meshes, Hlong GridSpacing, const HString& Rotation, const HTuple& Row, const HTuple& Column, const HString& MapType) const;
  53. // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
  54. HImage GenGridRectificationMap(const HImage& Image, HXLDModPara* Meshes, Hlong GridSpacing, const char* Rotation, const HTuple& Row, const HTuple& Column, const char* MapType) const;
  55. #ifdef _WIN32
  56. // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
  57. HImage GenGridRectificationMap(const HImage& Image, HXLDModPara* Meshes, Hlong GridSpacing, const wchar_t* Rotation, const HTuple& Row, const HTuple& Column, const wchar_t* MapType) const;
  58. #endif
  59. // Choose all contours or polygons containing a given point.
  60. HXLDModPara SelectXldPoint(const HTuple& Row, const HTuple& Column) const;
  61. // Choose all contours or polygons containing a given point.
  62. HXLDModPara SelectXldPoint(double Row, double Column) const;
  63. // Select contours or polygons using shape features.
  64. HXLDModPara SelectShapeXld(const HTuple& Features, const HString& Operation, const HTuple& Min, const HTuple& Max) const;
  65. // Select contours or polygons using shape features.
  66. HXLDModPara SelectShapeXld(const HString& Features, const HString& Operation, double Min, double Max) const;
  67. // Select contours or polygons using shape features.
  68. HXLDModPara SelectShapeXld(const char* Features, const char* Operation, double Min, double Max) const;
  69. #ifdef _WIN32
  70. // Select contours or polygons using shape features.
  71. HXLDModPara SelectShapeXld(const wchar_t* Features, const wchar_t* Operation, double Min, double Max) const;
  72. #endif
  73. // Transform the shape of contours or polygons.
  74. HXLDModPara ShapeTransXld(const HString& Type) const;
  75. // Transform the shape of contours or polygons.
  76. HXLDModPara ShapeTransXld(const char* Type) const;
  77. #ifdef _WIN32
  78. // Transform the shape of contours or polygons.
  79. HXLDModPara ShapeTransXld(const wchar_t* Type) const;
  80. #endif
  81. // Insert objects into an iconic object tuple.
  82. HXLDModPara InsertObj(const HXLDModPara& ObjectsInsert, Hlong Index) const;
  83. // Remove objects from an iconic object tuple.
  84. HXLDModPara RemoveObj(const HTuple& Index) const;
  85. // Remove objects from an iconic object tuple.
  86. HXLDModPara RemoveObj(Hlong Index) const;
  87. // Replaces one or more elements of an iconic object tuple.
  88. HXLDModPara ReplaceObj(const HXLDModPara& ObjectsReplace, const HTuple& Index) const;
  89. // Replaces one or more elements of an iconic object tuple.
  90. HXLDModPara ReplaceObj(const HXLDModPara& ObjectsReplace, Hlong Index) const;
  91. private:
  92. // Verify matching semantic type ('xld_mod_para')!
  93. void AssertObjectClass();
  94. };
  95. }
  96. #endif