Halconにおける「Not enough memory available」異常処理方法の1つ

699 ワード

Halconはthreshold_を実行していますsub_pix演算子の場合、異常「Not enough memory available」を投げ出す確率があります.異常コード:H_ERR_MEM 6001 Not enough memory available
解決方法:threshold演算子を使用して置き換えます.例外コード:
threshold_sub_pix (ImageReduced, Border, threshold)

改善後
threshold(ImageReduced, Region1, threshold, 255)
gen_contour_region_xld(Region1, Border, 'border_holes')