C3204
2025-12-30 4b3a410a5083970bb2e56d2ab459d860c4fa22d0
LB_VisionProcesses/Alogrithms/OpenCvSharp/FindLineTool/FindLineToolEdit.cs
@@ -144,9 +144,10 @@
                if (Subject.InputImage != null && Subject.InputImage is Mat)
                {
                    using (HImage image = TAlgorithm.Mat2HImage((Mat)Subject.InputImage))
                    {
                    TAlgorithm.Mat2HObject((Mat)Subject.InputImage, out HObject image);
                        inputImageHSmartWindowControl.ShowHoImage(image);
                }
                        Type type = Subject.Params.ROI?.GetType();
                        if (Subject.Params.ROI != null)
                        {
@@ -198,8 +199,6 @@
                            default:
                                inputImageHSmartWindowControl.oRoi = null;
                                break;
                        }
                    }
                }
            }));
        }
@@ -259,10 +258,11 @@
                if (Subject.InputImage != null && Subject.InputImage is Mat)
                {
                    using (HImage image = TAlgorithm.Mat2HImage((Mat)Subject.InputImage))
                    {
                        image.GetImageSize(out HTuple ho_ImageWidth, out HTuple ho_ImageHeight);
                    TAlgorithm.Mat2HObject((Mat)Subject.InputImage, out HObject image);
                    HOperatorSet.GetImageSize(image, out HTuple ho_ImageWidth, out HTuple ho_ImageHeight);
                        recordImageHSmartWindowControl.ShowHoImage(image);
                }
                        //先判断子类再判断父类
                        if (Subject.Record != null && Subject.Record is MsgRecord msgRecord)
                        {
@@ -278,8 +278,7 @@
                            recordImageHSmartWindowControl.DispObj(objRecord.RecordObject_OK, true);
                            recordImageHSmartWindowControl.DispObj(objRecord.RecordObject_NG, false);
                        }
                    }
                }
                GC.Collect();
            }));
        }
@@ -346,9 +345,9 @@
                    HTuple hv_imageHeight = 0;
                    if (InputImage != null && InputImage is Mat)
                    {
                        using (HImage image=TAlgorithm.Mat2HImage((Mat)InputImage))
                        {
                            image.GetImageSize(out hv_imageWidth, out hv_imageHeight);
                        TAlgorithm.Mat2HObject((Mat)InputImage, out HObject image);
                        HOperatorSet.GetImageSize(image, out hv_imageWidth, out hv_imageHeight);
                    }
                            switch (type)
                            {
                                case RoiType.Rectangle2:
@@ -368,8 +367,6 @@
                                default:
                                    inputImageHSmartWindowControl.oRoi = null;
                                    break;
                            }
                        }
                    }
                }
            }
@@ -400,9 +397,10 @@
                    if (InputImage != null && InputImage is Mat)
                    {
                        using (HImage image = TAlgorithm.Mat2HImage((Mat)InputImage))
                        {
                        TAlgorithm.Mat2HObject((Mat)InputImage, out HObject image);
                            inputImageHSmartWindowControl.ShowHoImage(image);
                    }
                            int hv_Elements = Convert.ToInt16(itxtCaliperCount.Text);
                            double hv_DetectHeight = Convert.ToDouble(dtxtCaliperHeight.Text);
                            double hv_DetectWidth = Convert.ToDouble(dtxtCaliperWidth.Text);
@@ -418,8 +416,6 @@
                                , out HTuple hv_ResultRow, out HTuple hv_ResultColumn);
                            inputImageHSmartWindowControl.DispObj(ho_Regions);
                        }
                    }
                }
                catch { }
            }));