From 4b3a410a5083970bb2e56d2ab459d860c4fa22d0 Mon Sep 17 00:00:00 2001
From: C3204 <zhengyabo@lanpucloud.cn>
Date: 星期二, 30 十二月 2025 15:50:42 +0800
Subject: [PATCH] 添加单流程多相机处理功能。
---
LB_VisionProcesses/Alogrithms/BaseAlgorithm/TestTool/TestToolEdit.cs | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TestTool/TestToolEdit.cs b/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TestTool/TestToolEdit.cs
index d8bccd0..a445945 100644
--- a/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TestTool/TestToolEdit.cs
+++ b/LB_VisionProcesses/Alogrithms/BaseAlgorithm/TestTool/TestToolEdit.cs
@@ -89,7 +89,7 @@
stxtInput.Text = Subject.Params.Inputs["杈撳叆"].ToString();
if (Subject.InputImage != null && Subject.InputImage is HObject)
- inputImageHSmartWindowControl.ShowHoImage((HImage)Subject.InputImage);
+ inputImageHSmartWindowControl.ShowHoImage((HObject)Subject.InputImage);
Type type = Subject.Params.ROI?.GetType();
if (Subject.Params.ROI != null)
@@ -179,21 +179,17 @@
{
if (Subject.OutputImage is Mat)
{
- using (HImage image = TAlgorithm.Mat2HImage((Mat)Subject.OutputImage))
- {
- recordImageHSmartWindowControl.ShowHoImage(image);
- }
+ TAlgorithm.Mat2HObject((Mat)Subject.OutputImage, out HObject image);
+ recordImageHSmartWindowControl.ShowHoImage(image);
}
else if (Subject.OutputImage is Bitmap)
{
- using (HImage image = TAlgorithm.Bitmap2HImage((Bitmap)Subject.OutputImage))
- {
- recordImageHSmartWindowControl.ShowHoImage(image);
- }
+ TAlgorithm.Bitmap2HObject((Bitmap)Subject.OutputImage, out HObject image);
+ recordImageHSmartWindowControl.ShowHoImage(image);
}
- else if (Subject.OutputImage is HImage)
+ else if (Subject.OutputImage is HObject)
{
- recordImageHSmartWindowControl.ShowHoImage((HImage)Subject.OutputImage);
+ recordImageHSmartWindowControl.ShowHoImage((HObject)Subject.OutputImage);
}
}
//鍏堝垽鏂瓙绫诲啀鍒ゆ柇鐖剁被
--
Gitblit v1.9.3