cell histogram
This commit is contained in:
@@ -29,12 +29,12 @@
|
||||
</Border>
|
||||
|
||||
<!-- Settings Panel -->
|
||||
<Border DockPanel.Dock="Right" Width="220" Padding="12" Background="White">
|
||||
<Border DockPanel.Dock="Right" Width="260" Padding="12" Background="White">
|
||||
<ScrollViewer>
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="Calibration Settings" FontWeight="Bold" FontSize="14" Foreground="Black" />
|
||||
|
||||
|
||||
|
||||
<Button Content="Calibrate" Command="{Binding RunCalibrationCommand}" Margin="0,4"
|
||||
Background="Red" Foreground="White" FontWeight="Bold" />
|
||||
<Button Content="Clear Images" Command="{Binding ClearCalibrationImagesCommand}" Margin="0,4"
|
||||
@@ -53,13 +53,69 @@
|
||||
</TextBlock>
|
||||
<CheckBox Content="Apply Calibration" IsChecked="{Binding ApplyCalibration}"
|
||||
IsEnabled="{Binding IsCalibrated}" Foreground="Black" Margin="0,4" />
|
||||
|
||||
<Separator Margin="0,8" />
|
||||
|
||||
<TextBlock Text="Pattern" FontWeight="Bold" FontSize="14" Foreground="Black" />
|
||||
|
||||
<TextBlock Text="Rows" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding Rows}" Minimum="1" Maximum="200" Increment="1" FormatString="0" />
|
||||
|
||||
<TextBlock Text="Cols" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding Cols}" Minimum="1" Maximum="200" Increment="1" FormatString="0" />
|
||||
|
||||
<TextBlock Text="Shape" Foreground="Black" />
|
||||
<ComboBox ItemsSource="{Binding AvailableCellShapes}" SelectedItem="{Binding SelectedCellShape}" HorizontalAlignment="Stretch" />
|
||||
|
||||
<TextBlock Text="Padding (px)" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding Padding}" Minimum="0" Maximum="500" Increment="1" FormatString="0" />
|
||||
|
||||
<Separator Margin="0,8" />
|
||||
|
||||
<TextBlock Text="ROI (px)" FontWeight="Bold" FontSize="14" Foreground="Black" />
|
||||
|
||||
<TextBlock Text="X" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding RoiX}" Minimum="0" Maximum="100000" Increment="1" FormatString="0" />
|
||||
<TextBlock Text="Y" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding RoiY}" Minimum="0" Maximum="100000" Increment="1" FormatString="0" />
|
||||
<TextBlock Text="Width" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding RoiWidth}" Minimum="0" Maximum="100000" Increment="1" FormatString="0" />
|
||||
<TextBlock Text="Height" Foreground="Black" />
|
||||
<NumericUpDown Value="{Binding RoiHeight}" Minimum="0" Maximum="100000" Increment="1" FormatString="0" />
|
||||
|
||||
<Separator Margin="0,8" />
|
||||
|
||||
<Button Content="Set Reference" Command="{Binding SetReferenceHistogramCommand}" Margin="0,4"
|
||||
Background="#2E7D32" Foreground="White" FontWeight="Bold" HorizontalAlignment="Stretch" />
|
||||
<TextBlock Text="✓ Reference set" Foreground="LimeGreen" IsVisible="{Binding HasReferenceHistogram}" />
|
||||
|
||||
<TextBlock Text="Tolerance" Foreground="Black" Margin="0,4,0,0" />
|
||||
<NumericUpDown Value="{Binding Tolerance}" Minimum="0" Maximum="1" Increment="0.05" FormatString="0.00" />
|
||||
|
||||
<Button Content="Test Pattern" Command="{Binding TestPatternCommand}" Margin="0,4"
|
||||
Background="#1565C0" Foreground="White" FontWeight="Bold" HorizontalAlignment="Stretch" />
|
||||
|
||||
<Separator Margin="0,8" />
|
||||
|
||||
<TextBlock Text="Recipe" FontWeight="Bold" FontSize="14" Foreground="Black" />
|
||||
<TextBlock Foreground="Black">
|
||||
<TextBlock.Text>
|
||||
<MultiBinding StringFormat="Current: {0}">
|
||||
<Binding Path="CurrentRecipeName" />
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
<Button Content="Save Recipe" Command="{Binding SaveRecipeCommand}" Margin="0,4"
|
||||
Background="#6A1B9A" Foreground="White" FontWeight="Bold" HorizontalAlignment="Stretch" />
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
|
||||
<!-- Live Preview -->
|
||||
<Border Background="#1A1A1A" Margin="4">
|
||||
<Image Source="{Binding PreviewImage}" Stretch="Uniform" />
|
||||
<Image x:Name="PreviewImageControl"
|
||||
Source="{Binding PreviewImage}"
|
||||
Stretch="Uniform" />
|
||||
</Border>
|
||||
</DockPanel>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user