diff --git a/XplorePlane/Events/MeasurementToolEvent.cs b/XplorePlane/Events/MeasurementToolEvent.cs
index 4356e45..cb561d3 100644
--- a/XplorePlane/Events/MeasurementToolEvent.cs
+++ b/XplorePlane/Events/MeasurementToolEvent.cs
@@ -51,4 +51,25 @@ namespace XplorePlane.Events
public System.Drawing.Rectangle RoiRect { get; set; }
public System.Collections.Generic.List<(System.Drawing.Point center, int radius, double sizeMm)> Detections { get; set; }
}
+
+ ///
+ /// 黑底检测事件(进入ROI绘制模式)
+ ///
+ public class BlackBackgroundDetectionEvent : PubSubEvent { }
+
+ ///
+ /// 黑底检测ROI绘制完成事件
+ ///
+ public class BlackBackgroundRoiDrawnEvent : PubSubEvent { }
+
+ ///
+ /// 黑底检测结果事件
+ ///
+ public class BlackBackgroundResultEvent : PubSubEvent { }
+
+ public class BlackBackgroundResultPayload
+ {
+ public System.Drawing.Rectangle RoiRect { get; set; }
+ public System.Collections.Generic.List<(System.Drawing.Point center, int radius, double sizeMm)> Detections { get; set; }
+ }
}
diff --git a/XplorePlane/ViewModels/Main/MainViewModel.cs b/XplorePlane/ViewModels/Main/MainViewModel.cs
index 6f99e44..da2e756 100644
--- a/XplorePlane/ViewModels/Main/MainViewModel.cs
+++ b/XplorePlane/ViewModels/Main/MainViewModel.cs
@@ -278,6 +278,9 @@ namespace XplorePlane.ViewModels
_eventAggregator.GetEvent()
.Subscribe(OnWhiteBackgroundRoiDrawn, ThreadOption.UIThread);
+ _eventAggregator.GetEvent()
+ .Subscribe(OnBlackBackgroundRoiDrawn, ThreadOption.UIThread);
+
NavigationTree = new ObservableCollection