123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <Window x:Class="HumanOrganSegmentDemo.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:HumanOrganSegmentDemo"
- mc:Ignorable="d"
- Title="人体脏器轮廓分割" Height="600" Width="1000" Closing="Window_Closing">
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="50"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
- <local:ImageCanvas x:Name="MyImageCanvas"/>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="相机类型:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center"/>
- <ComboBox x:Name="ComboBoxCameraType" FontSize="12" Margin="4,4,4,4" Width="60" VerticalAlignment="Center" SelectionChanged="OnComboBoxCameraTypeSelectionChanged"/>
- <ComboBox x:Name="ComboBoxCameras" Margin="4,4,4,4" Width="120" VerticalAlignment="Center" SelectionChanged="OnComboBoxCardsSelectionChanged"/>
- <Button x:Name="BtnRefreshCameras" Content="相机列表刷新" Margin="4,4,4,4" Width="80" Click="OnRefreshCardsClick"/>
- <Button x:Name="BtnOpenCameras" Content="打开相机" Margin="4,4,4,4" Width="60" Click="OnBtnOpenCameraClick"/>
- <TextBlock Text="脏器类型:" FontSize="20" Margin="30,4,4,4" VerticalAlignment="Center"/>
- <ComboBox x:Name="ComboBoxOrganType" FontSize="20" Margin="4,4,4,4" Width="80" VerticalAlignment="Center" SelectionChanged="OnComboBoxOrganTypeSelectionChanged"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <Button Content="加载图片" FontSize="20" Margin="30,4,20,4" Width="140" Click="OnBtnLoadImagClicked"/>
- <CheckBox x:Name="CheckboxIsCropped" IsChecked="True" Content="已裁切" VerticalContentAlignment="Center" VerticalAlignment="Center"
- FontSize="20" Margin="10,4,10,4" Checked="OnCheckedIsCropped" Unchecked="OnUncheckedIsCropped"/>
- <TextBlock Text="推理时间(毫秒):" FontSize="20" Margin="10,4,4,4" VerticalAlignment="Center"/>
- <TextBlock x:Name="ForwardTime" FontSize="20" Margin="4,4,10,4" VerticalAlignment="Center" Width="60"/>
- <TextBlock Text="裁图时间(毫秒):" FontSize="20" Margin="10,4,4,4" VerticalAlignment="Center"/>
- <TextBlock x:Name="CropImageTime" FontSize="20" Margin="4,4,10,4" VerticalAlignment="Center" Width="60"/>
- <TextBlock Text="CPU数量:" FontSize="20" Margin="10,4,4,4" VerticalAlignment="Center"/>
- <TextBox x:Name="TextBoxCPU" Text ="1" FontSize="18" Margin="4,4,10,4" VerticalAlignment="Center" Width="51"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" >
- <StackPanel Orientation="Horizontal">
- <Button Content="开始执行" FontSize="20" Margin="30,4,20,4" Width="140" Click="OnBtnRunClicked"/>
- <Button Content="停止执行" FontSize="20" Margin="30,4,20,4" Width="140" Click="OnBtnStopClicked"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|