HXLD.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*****************************************************************************
  2. * HXLD.h
  3. *****************************************************************************
  4. *
  5. * Project: HALCON/libhalcon
  6. * Description: Extended Line Description
  7. *
  8. * (c) 1996-2020 by MVTec Software GmbH
  9. * www.mvtec.com
  10. *
  11. *****************************************************************************
  12. *
  13. *
  14. */
  15. #ifndef HXLD_H
  16. #define HXLD_H
  17. #if defined(__cplusplus)
  18. extern "C" {
  19. #endif
  20. extern HLibExport Herror HAllocXLDContSecure(Hproc_handle proc_handle,
  21. Hcont** cont,
  22. HITEMCNT num_points);
  23. extern HLibExport Herror HAllocXLDCont(Hproc_handle proc_id, Hcont** cont,
  24. HITEMCNT num_points);
  25. extern HLibExport Herror HAllocXLDContRC(Hproc_handle proc_id, Hcont* cont,
  26. HITEMCNT num_points);
  27. extern HLibExport Herror HReallocXLDContRC(Hproc_handle proc_handle,
  28. HITEMCNT num_points_new,
  29. Hcont* cont);
  30. extern HLibExport Herror HCopyXLDCont(Hproc_handle proc_id,
  31. const Hcont* H_RESTRICT cont_in,
  32. HBOOL preserve_attribs,
  33. HBOOL preserve_global_attribs,
  34. Hcont** H_RESTRICT cont_out);
  35. extern HLibExport Herror HCopyXLDContPart(Hproc_handle proc_id,
  36. const Hcont* H_RESTRICT cont_in,
  37. INT4_8 min_index, INT4_8 max_index,
  38. HBOOL preserve_attribs,
  39. HBOOL preserve_global_attribs,
  40. Hcont** H_RESTRICT cont_out);
  41. extern HLibExport Herror HFreeXLDCont(Hproc_handle proc_id, Hcont* cont);
  42. extern HLibExport Herror HLookupXLDContAttrib(const Hcont* H_RESTRICT cont,
  43. const char* H_RESTRICT name,
  44. INT4* indx);
  45. extern HLibExport Herror HAddXLDContAttrib(Hproc_handle proc_id, Hcont* cont,
  46. const char* name, INT4* indx);
  47. extern HLibExport Herror HLookupXLDContGlobalAttrib(
  48. const Hcont* H_RESTRICT cont, const char* H_RESTRICT name, INT4* indx);
  49. extern HLibExport Herror HAddXLDContGlobalAttrib(Hproc_handle proc_id,
  50. Hcont* cont, const char* name,
  51. INT4* indx);
  52. extern HLibExport Herror HXLDFreeContour(Hproc_handle proc_id, Hcont* cont);
  53. extern HLibExport Herror HXLDFreePolygon(Hproc_handle proc_id, Hpoly* poly);
  54. extern HLibExport Herror HXLDFreeParallel(Hproc_handle proc_id,
  55. Hpara_poly* para);
  56. extern HLibExport Herror HXLDFreeModParallel(Hproc_handle proc_id,
  57. Hmod_para* mod_para);
  58. extern HLibExport Herror HXLDFreeExtParallel(Hproc_handle proc_id,
  59. Hext_para* ext_para);
  60. extern HLibExport Herror HXLDCopyGlobalAttribsUntil(Hproc_handle proc_handle,
  61. const Hcont* cont_from,
  62. const char* until_name,
  63. Hcont* cont_to);
  64. #if defined(__cplusplus)
  65. }
  66. #endif
  67. #endif