123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- /***********************************************************
- * File generated by the HALCON-Compiler hcomp version 20.11
- * Usage: Interface to C++
- *
- * Software by: MVTec Software GmbH, www.mvtec.com
- ***********************************************************/
- #ifndef HCPP_HDLCLASSIFIERRESULT
- #define HCPP_HDLCLASSIFIERRESULT
- namespace HalconCpp
- {
- // Represents an instance of a Deep Neural Network inference step result.
- class LIntExport HDlClassifierResult : public HHandle
- {
- public:
- // Create an uninitialized instance
- HDlClassifierResult():HHandle() {}
- // Copy constructor
- HDlClassifierResult(const HDlClassifierResult& source) : HHandle(source) {}
- // Copy constructor
- HDlClassifierResult(const HHandle& handle);
- // Create HDlClassifierResult from handle, taking ownership
- explicit HDlClassifierResult(Hlong handle);
- bool operator==(const HHandle& obj) const
- {
- return HHandleBase::operator==(obj);
- }
- bool operator!=(const HHandle& obj) const
- {
- return HHandleBase::operator!=(obj);
- }
- protected:
- // Verify matching semantic type ('dl_classifier_result')!
- virtual void AssertType(Hphandle handle) const;
- public:
- /*****************************************************************************
- * Operator-based class constructors
- *****************************************************************************/
- // apply_dl_classifier: Infer the class affiliations for a set of images using a deep-learning-based classifier.
- explicit HDlClassifierResult(const HImage& Images, const HDlClassifier& DLClassifierHandle);
- /***************************************************************************
- * Operators *
- ***************************************************************************/
- // Clear a handle containing the results of the deep-learning-based classification.
- static void ClearDlClassifierResult(const HDlClassifierResultArray& DLClassifierResultHandle);
- // Clear a handle containing the results of the deep-learning-based classification.
- void ClearDlClassifierResult() const;
- // Retrieve classification results inferred by a deep-learning-based classifier.
- HTuple GetDlClassifierResult(const HTuple& Index, const HTuple& GenResultName) const;
- // Retrieve classification results inferred by a deep-learning-based classifier.
- HTuple GetDlClassifierResult(const HString& Index, const HString& GenResultName) const;
- // Retrieve classification results inferred by a deep-learning-based classifier.
- HTuple GetDlClassifierResult(const char* Index, const char* GenResultName) const;
- #ifdef _WIN32
- // Retrieve classification results inferred by a deep-learning-based classifier.
- HTuple GetDlClassifierResult(const wchar_t* Index, const wchar_t* GenResultName) const;
- #endif
- };
- // forward declarations and types for internal array implementation
- template<class T> class HSmartPtr;
- template<class T> class HHandleBaseArrayRef;
- typedef HHandleBaseArrayRef<HDlClassifierResult> HDlClassifierResultArrayRef;
- typedef HSmartPtr< HDlClassifierResultArrayRef > HDlClassifierResultArrayPtr;
- // Represents multiple tool instances
- class LIntExport HDlClassifierResultArray : public HHandleBaseArray
- {
- public:
- // Create empty array
- HDlClassifierResultArray();
- // Create array from native array of tool instances
- HDlClassifierResultArray(HDlClassifierResult* classes, Hlong length);
- // Copy constructor
- HDlClassifierResultArray(const HDlClassifierResultArray &tool_array);
- // Destructor
- virtual ~HDlClassifierResultArray();
- // Assignment operator
- HDlClassifierResultArray &operator=(const HDlClassifierResultArray &tool_array);
- // Clears array and all tool instances
- virtual void Clear();
- // Get array of native tool instances
- const HDlClassifierResult* Tools() const;
- // Get number of tools
- virtual Hlong Length() const;
- // Create tool array from tuple of handles
- virtual void SetFromTuple(const HTuple& handles);
- // Get tuple of handles for tool array
- virtual HTuple ConvertToTuple() const;
- protected:
- // Smart pointer to internal data container
- HDlClassifierResultArrayPtr *mArrayPtr;
- };
- }
- #endif
|