HRLClip.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*****************************************************************************
  2. * HRLClip.h
  3. *****************************************************************************
  4. *
  5. * Project: HALCON/libhalcon
  6. * Description: Rectangular clipping of regions (Hrlregion)
  7. *
  8. * (c) 1996-2020 by MVTec Software GmbH
  9. * www.mvtec.com
  10. *
  11. *****************************************************************************
  12. *
  13. *
  14. */
  15. #ifndef HRLCLIP_H
  16. #define HRLCLIP_H
  17. #if defined(__cplusplus)
  18. extern "C" {
  19. #endif
  20. extern HLibExport Herror HRLClipImsize(Hproc_handle proc_id,
  21. Hrlregion* region);
  22. extern HLibExport Herror HRLClipImsize2(Hproc_handle proc_id,
  23. Hrlregion* region, Hrlregion* clipped);
  24. extern HLibExport Herror HRLClipp2(Hproc_handle proc_id, Hrlregion* in_out,
  25. int l1, int c1, int l2, int c2);
  26. extern HLibExport Herror HRLRelClipp(Hproc_handle proc_id, Hrlregion* region,
  27. int top, int bottom, int left, int right,
  28. Hrlregion* clipped);
  29. extern HLibExport Herror HRLClipp(Hproc_handle proc_id,
  30. Hrlregion const* region_in, int l1, int c1,
  31. int l2, int c2, Hrlregion* clipped);
  32. extern HLibExport Herror HRLHdiv(Hproc_handle proc_id,
  33. Hrlregion const* Obj_ein, int horizontale,
  34. Hrlregion* tO_oben, Hrlregion* tO_unten);
  35. extern HLibExport Herror HRLVdiv(Hproc_handle proc_id, Hrlregion* Obj_ein,
  36. int vertikale, Hrlregion* tO_links,
  37. Hrlregion* tO_rechts);
  38. extern HLibExport Herror HRLDecomp(Hrlregion const* image_domain, int l1,
  39. int c1, int l2, int c2, Hrlregion* inner,
  40. Hrlregion* border);
  41. extern HLibExport Herror HRCDecomp(Hvrlregion const* region, int l1, int c1,
  42. int l2, int c2, Hvrlregion* inner,
  43. Hvrlregion* outer);
  44. extern HLibExport Herror HRLClipBottomRight(Hrlregion* H_RESTRICT region,
  45. HIMGCOOR max_l, HIMGCOOR max_c);
  46. #if defined(__cplusplus)
  47. }
  48. #endif
  49. #endif