探测器设置界面增加图像灰度直方图,用于显示实时采集图像的灰度信息,优化图像灰度直方图的显示方式(无图像提示)和优化资源释放。

This commit is contained in:
QI Mingxuan
2026-05-18 14:41:05 +08:00
parent a9d56ebfbd
commit ed0fe92cbe
9 changed files with 131 additions and 6 deletions
@@ -6,8 +6,9 @@
xmlns:prism="http://prismlibrary.com/"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:loc="clr-namespace:XP.Common.Localization.Extensions;assembly=XP.Common"
xmlns:hist="clr-namespace:XP.Common.Controls.ImageHistogram;assembly=XP.Common"
mc:Ignorable="d"
d:DesignWidth="420" d:DesignHeight="210"
d:DesignWidth="420" d:DesignHeight="360"
prism:ViewModelLocator.AutoWireViewModel="True"
Background="White">
@@ -22,6 +23,8 @@
<RowDefinition Height="Auto"/>
<RowDefinition Height="10"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="10"/>
<RowDefinition Height="150"/>
</Grid.RowDefinitions>
<!-- 第1行:灵敏度 + 帧率 | Row 1: Sensitivity (PGA) + Frame rate -->
@@ -136,5 +139,12 @@
</telerik:RadButton.Background>
</telerik:RadButton>
</Grid>
<!-- 第6行:图像灰度直方图 | Row 6: Image grayscale histogram -->
<hist:ImageHistogramControl x:Name="HistogramControl"
Grid.Row="10"
MaxFrameRate="10"
IsLogarithmic="False"
HorizontalAlignment="Stretch"/>
</Grid>
</UserControl>