C3031
2025-12-31 c0a0efef9fd79210e6ac165bc1e08576e40315f6
LB_VisionProcesses/Alogrithms/BaseAlgorithm/TAlgorithm.cs
@@ -41,7 +41,7 @@
        /// <summary>
        /// 读写锁
        /// </summary>
        public readonly object lockObj = new object();
        public static readonly object lockObj = new object();
        /// <summary>
        /// 裁切图片为hoDomainImage(保留原坐标系,其余填充为空)
@@ -645,6 +645,7 @@
                else
                {
                    throw new ArgumentException($"Mat2HObject不支持的图像格式:{mat.Type()}");
                    return;
                }
                return;
            }
@@ -1237,10 +1238,10 @@
                HOperatorSet.GenImageConst(out image, "real", hv_xMax + 1, hv_yMax + 1);
                HOperatorSet.SetGrayval(image, hv_y, hv_x, hv_z);
                //hoperatorset.getimagesize(ho_image, out htuple hv_width, out htuple hv_height);
                //hoperatorset.genrectangle1(out hobject ho_rectangle, 0, 0, hv_height - 1, hv_width - 1);
                //hoperatorset.getregionpoints(ho_rectangle, out htuple hv_rows, out htuple hv_columns);
                //hoperatorset.getgrayval(ho_image, hv_rows, hv_columns, out htuple hv_z);
                //HOperatorSet.GetImageSize(ho_Image, out HTuple hv_Width, out HTuple hv_Height);
                //HOperatorSet.GenRectangle1(out HObject ho_Rectangle, 0, 0, hv_Height - 1, hv_Width - 1);
                //HOperatorSet.GetRegionPoints(ho_Rectangle, out HTuple hv_Rows, out HTuple hv_Columns);
                //HOperatorSet.GetGrayval(ho_Image, hv_Rows, hv_Columns, out HTuple hv_Z);
            }
            catch { image = null; }
        }