C++ 调用 Halcon 时偶现大尺寸的算子操作无效问题,本文记录解决方案。
HObject Rectangle;
GenRectangle1(&Rectangle, 234, 31, 1534, 424)
HTuple test;
RegionFeatures(ho_roi, "width", &test);
cout << test[0].D() <<endl;
RegionFeatures(ho_roi, "area", &test);
cout << test[0].D() << endl;
RegionFeatures(ho_roi, "row1", &test);
cout << test[0].D() << endl;
RegionFeatures(ho_roi, "height", &test);
cout << test[0].D() << endl;HalconCpp::SetSystem("width", 8000);
HalconCpp::SetSystem("height", 8000);