123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- /***********************************************************
- * File generated by the HALCON-Compiler hcomp version 20.11
- * Usage: Interface to C++
- *
- * Software by: MVTec Software GmbH, www.mvtec.com
- ***********************************************************/
- #ifndef HCPP_HXLDEXTPARA
- #define HCPP_HXLDEXTPARA
- namespace HalconCpp
- {
- // Represents an instance of an XLD extended parallel object(-array).
- class LIntExport HXLDExtPara : public HXLD
- {
- public:
- // Create an uninitialized instance
- HXLDExtPara():HXLD() {}
- // Copy constructor
- HXLDExtPara(const HXLDExtPara& source) : HXLD(source) {}
- // Copy constructor
- HXLDExtPara(const HObject& object);
- // Create HXLDExtPara from object id. For copy=false takes
- // over management of input key. Type of key must match!
- explicit HXLDExtPara(Hkey key, bool copy=true);
- // Access of object tuple element
- const HXLDExtPara operator [] (Hlong index) const;
- /***************************************************************************
- * Operators *
- ***************************************************************************/
- // Join modified XLD parallels lying on the same polygon.
- HXLDPoly MaxParallelsXld() const;
- // Calculate the difference of two object tuples.
- HXLDExtPara ObjDiff(const HXLDExtPara& ObjectsSub) const;
- // Copy an iconic object in the HALCON database.
- HXLDExtPara CopyObj(Hlong Index, Hlong NumObj) const;
- // Concatenate two iconic object tuples.
- HXLDExtPara ConcatObj(const HXLDExtPara& Objects2) const;
- // Select objects from an object tuple.
- HXLDExtPara SelectObj(const HTuple& Index) const;
- // Select objects from an object tuple.
- HXLDExtPara SelectObj(Hlong Index) const;
- // Compare iconic objects regarding equality.
- Hlong CompareObj(const HXLDExtPara& Objects2, const HTuple& Epsilon) const;
- // Compare iconic objects regarding equality.
- Hlong CompareObj(const HXLDExtPara& Objects2, double Epsilon) const;
- // Compare image objects regarding equality.
- Hlong TestEqualObj(const HXLDExtPara& 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, HXLDExtPara* 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, HXLDExtPara* 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, HXLDExtPara* 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, HXLDExtPara* 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.
- HXLDExtPara SelectXldPoint(const HTuple& Row, const HTuple& Column) const;
- // Choose all contours or polygons containing a given point.
- HXLDExtPara SelectXldPoint(double Row, double Column) const;
- // Select contours or polygons using shape features.
- HXLDExtPara SelectShapeXld(const HTuple& Features, const HString& Operation, const HTuple& Min, const HTuple& Max) const;
- // Select contours or polygons using shape features.
- HXLDExtPara SelectShapeXld(const HString& Features, const HString& Operation, double Min, double Max) const;
- // Select contours or polygons using shape features.
- HXLDExtPara SelectShapeXld(const char* Features, const char* Operation, double Min, double Max) const;
- #ifdef _WIN32
- // Select contours or polygons using shape features.
- HXLDExtPara SelectShapeXld(const wchar_t* Features, const wchar_t* Operation, double Min, double Max) const;
- #endif
- // Transform the shape of contours or polygons.
- HXLDExtPara ShapeTransXld(const HString& Type) const;
- // Transform the shape of contours or polygons.
- HXLDExtPara ShapeTransXld(const char* Type) const;
- #ifdef _WIN32
- // Transform the shape of contours or polygons.
- HXLDExtPara ShapeTransXld(const wchar_t* Type) const;
- #endif
- // Insert objects into an iconic object tuple.
- HXLDExtPara InsertObj(const HXLDExtPara& ObjectsInsert, Hlong Index) const;
- // Remove objects from an iconic object tuple.
- HXLDExtPara RemoveObj(const HTuple& Index) const;
- // Remove objects from an iconic object tuple.
- HXLDExtPara RemoveObj(Hlong Index) const;
- // Replaces one or more elements of an iconic object tuple.
- HXLDExtPara ReplaceObj(const HXLDExtPara& ObjectsReplace, const HTuple& Index) const;
- // Replaces one or more elements of an iconic object tuple.
- HXLDExtPara ReplaceObj(const HXLDExtPara& ObjectsReplace, Hlong Index) const;
- private:
- // Verify matching semantic type ('xld_ext_para')!
- void AssertObjectClass();
- };
- }
- #endif
|