123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- /***********************************************************
- * File generated by the HALCON-Compiler hcomp version 20.11
- * Usage: Interface to C++
- *
- * Software by: MVTec Software GmbH, www.mvtec.com
- ***********************************************************/
- #ifndef HCPP_HXLDMODPARA
- #define HCPP_HXLDMODPARA
- namespace HalconCpp
- {
- // Represents an instance of an XLD modified parallel object(-array).
- class LIntExport HXLDModPara : public HXLD
- {
- public:
- // Create an uninitialized instance
- HXLDModPara():HXLD() {}
- // Copy constructor
- HXLDModPara(const HXLDModPara& source) : HXLD(source) {}
- // Copy constructor
- HXLDModPara(const HObject& object);
- // Create HXLDModPara from object id. For copy=false takes
- // over management of input key. Type of key must match!
- explicit HXLDModPara(Hkey key, bool copy=true);
- // Access of object tuple element
- const HXLDModPara operator [] (Hlong index) const;
- /***************************************************************************
- * Operators *
- ***************************************************************************/
- // Combine road hypotheses from two resolution levels.
- HXLDPoly CombineRoadsXld(const HXLDPoly& EdgePolygons, const HXLDExtPara& ExtParallels, const HXLDPoly& CenterLines, const HTuple& MaxAngleParallel, const HTuple& MaxAngleColinear, const HTuple& MaxDistanceParallel, const HTuple& MaxDistanceColinear) const;
- // Combine road hypotheses from two resolution levels.
- HXLDPoly CombineRoadsXld(const HXLDPoly& EdgePolygons, const HXLDExtPara& ExtParallels, const HXLDPoly& CenterLines, double MaxAngleParallel, double MaxAngleColinear, double MaxDistanceParallel, double MaxDistanceColinear) const;
- // Calculate the difference of two object tuples.
- HXLDModPara ObjDiff(const HXLDModPara& ObjectsSub) const;
- // Copy an iconic object in the HALCON database.
- HXLDModPara CopyObj(Hlong Index, Hlong NumObj) const;
- // Concatenate two iconic object tuples.
- HXLDModPara ConcatObj(const HXLDModPara& Objects2) const;
- // Select objects from an object tuple.
- HXLDModPara SelectObj(const HTuple& Index) const;
- // Select objects from an object tuple.
- HXLDModPara SelectObj(Hlong Index) const;
- // Compare iconic objects regarding equality.
- Hlong CompareObj(const HXLDModPara& Objects2, const HTuple& Epsilon) const;
- // Compare iconic objects regarding equality.
- Hlong CompareObj(const HXLDModPara& Objects2, double Epsilon) const;
- // Compare image objects regarding equality.
- Hlong TestEqualObj(const HXLDModPara& Objects2) const;
- // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
- HImage GenGridRectificationMap(const HImage& Image, HXLDModPara* Meshes, Hlong GridSpacing, const HTuple& Rotation, const HTuple& Row, const HTuple& Column, const HString& MapType) const;
- // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
- HImage GenGridRectificationMap(const HImage& Image, HXLDModPara* Meshes, Hlong GridSpacing, const HString& Rotation, const HTuple& Row, const HTuple& Column, const HString& MapType) const;
- // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
- HImage GenGridRectificationMap(const HImage& Image, HXLDModPara* Meshes, Hlong GridSpacing, const char* Rotation, const HTuple& Row, const HTuple& Column, const char* MapType) const;
- #ifdef _WIN32
- // Compute the mapping between the distorted image and the rectified image based upon the points of a regular grid.
- HImage GenGridRectificationMap(const HImage& Image, HXLDModPara* Meshes, Hlong GridSpacing, const wchar_t* Rotation, const HTuple& Row, const HTuple& Column, const wchar_t* MapType) const;
- #endif
- // Choose all contours or polygons containing a given point.
- HXLDModPara SelectXldPoint(const HTuple& Row, const HTuple& Column) const;
- // Choose all contours or polygons containing a given point.
- HXLDModPara SelectXldPoint(double Row, double Column) const;
- // Select contours or polygons using shape features.
- HXLDModPara SelectShapeXld(const HTuple& Features, const HString& Operation, const HTuple& Min, const HTuple& Max) const;
- // Select contours or polygons using shape features.
- HXLDModPara SelectShapeXld(const HString& Features, const HString& Operation, double Min, double Max) const;
- // Select contours or polygons using shape features.
- HXLDModPara SelectShapeXld(const char* Features, const char* Operation, double Min, double Max) const;
- #ifdef _WIN32
- // Select contours or polygons using shape features.
- HXLDModPara SelectShapeXld(const wchar_t* Features, const wchar_t* Operation, double Min, double Max) const;
- #endif
- // Transform the shape of contours or polygons.
- HXLDModPara ShapeTransXld(const HString& Type) const;
- // Transform the shape of contours or polygons.
- HXLDModPara ShapeTransXld(const char* Type) const;
- #ifdef _WIN32
- // Transform the shape of contours or polygons.
- HXLDModPara ShapeTransXld(const wchar_t* Type) const;
- #endif
- // Insert objects into an iconic object tuple.
- HXLDModPara InsertObj(const HXLDModPara& ObjectsInsert, Hlong Index) const;
- // Remove objects from an iconic object tuple.
- HXLDModPara RemoveObj(const HTuple& Index) const;
- // Remove objects from an iconic object tuple.
- HXLDModPara RemoveObj(Hlong Index) const;
- // Replaces one or more elements of an iconic object tuple.
- HXLDModPara ReplaceObj(const HXLDModPara& ObjectsReplace, const HTuple& Index) const;
- // Replaces one or more elements of an iconic object tuple.
- HXLDModPara ReplaceObj(const HXLDModPara& ObjectsReplace, Hlong Index) const;
- private:
- // Verify matching semantic type ('xld_mod_para')!
- void AssertObjectClass();
- };
- }
- #endif
|