123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <Window x:Class="SegmentDescribDemo.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:SegmentDescribDemo"
- mc:Ignorable="d"
- Title="MainWindow" Height="520" Width="1200" Closing="Window_Closing">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0" x:Name="GridOrigImg" SizeChanged="Canvas_SizeChanged">
- <Canvas x:Name="MyCanvas"
- MouseLeftButtonDown="Canvas_MouseLeftBtnDown"
- MouseMove="Canvas_MouseMove">
- <Image x:Name="OrigImage" Stretch="Fill">
- <Image.RenderTransform>
- <ScaleTransform x:Name="OrigImgScaleTramsform"/>
- </Image.RenderTransform>
- </Image>
- </Canvas>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <Image x:Name="DstImage"></Image>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <Button Content="加载一幅图像" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadOneImageClick"/>
- <TextBlock Text="鼠标位置:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
- <TextBlock x:Name="MousePosition" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="50"/>
- <TextBlock Text="ROI:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="30"/>
- <TextBlock x:Name="ROI" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="90"/>
- <Button Content="使用当前绘制的ROI" FontSize="12" Margin="4,4,4,4" Width="120" Click="OnUseCurrentROIClick"/>
- <Button Content="开始连续测试" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnStartContinuousTestClick"/>
- <Button Content="停止连续测试" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnStopContinuousTestClick"/>
- <TextBlock Text="耗时:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="30"/>
- <TextBlock x:Name="ElapsedTime" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
- <TextBlock Text="ms" FontSize="12" Margin="4,12" VerticalAlignment="Center"/>
- <RadioButton GroupName="Func" x:Name="FuncACWE" Content="ACWE" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="4,4,4,4"/>
- <RadioButton GroupName="Func" x:Name="FuncFCM" Content="FCM" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,4,4,4"></RadioButton>
- <RadioButton GroupName="Func" x:Name="FuncDRLSE" Content="DRLSE" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,4,4,4"></RadioButton>
- <RadioButton GroupName="Func" x:Name="FuncLBF" Content="LBF" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,4,4,4"></RadioButton>
- <RadioButton GroupName="Func" x:Name="FuncLSEWR" Content="LSEWR" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,4,4,4"></RadioButton>
- <RadioButton GroupName="Func" IsChecked="True" x:Name="FuncBLS" Content="BLS" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,4,4,4"></RadioButton>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="55" Height="18"><Run Text="生长"/><Run Text="方向"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="GrowDirectionDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="70"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="40" Height="18"><Run Text="形状"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="ContourShapeDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="70"/>
- <TextBlock FontSize="12" Margin="4,12,4,10" VerticalAlignment="Center" Width="60" Height="18"><Run Text="回声"/><Run Text="类型"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="EchoPatternDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="70" Height="18"><Run Text="边界清晰度"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="BoundaryBoundaryDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="67" Height="18"><Run Text="边缘光整度"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="EdgeMarginDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="67" Height="18"><Run Text="钙化"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="EdgeCificationDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="0">
- <StackPanel Orientation="Horizontal">
- <Button Content="加载图像数据库" HorizontalAlignment="Left" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadDataBaseClick"/>
- <Button Content="加载图像" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadOneImageDBClick" Height="32" />
- <Button Content="加载多幅图像" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadOneImagesClick" Height="32" />
- <Button Content="全模型单张" FontSize="12" Margin= "4,4,4,4" Width="100" Click="OnModelsProcessClick"/>
- <Button Content="全模型多张" FontSize="12" Margin= "4,4,4,4" Width="100" Click="OnModelsProcessAllClick"/>
-
- </StackPanel>
- </Grid>
- <Grid Grid.Row="3" Grid.Column="1">
- <StackPanel Orientation="Horizontal">
- <Button Content="处理DB文件图像" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDrawImageDBClick" Height="32" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2">
- <StackPanel Orientation="Horizontal">
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="55" Height="18"><Run Text="生长"/><Run Text="方向"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="GrowDirectionDescriPr" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="70"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="40" Height="18"><Run Text="形状"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="ContourShapeDescriPr" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="70"/>
- <TextBlock FontSize="12" Margin="4,12,4,10" VerticalAlignment="Center" Width="60" Height="18"><Run Text="回声"/><Run Text="类型"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="EchoPatternDescriPr" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="70" Height="18"><Run Text="边界清晰度"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="BoundaryBoundaryDescriPr" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="67" Height="18"><Run Text="边缘光整度"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="EdgeMarginDescriPr" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="67" Height="18"><Run Text="钙化"/><Run Text=":"/></TextBlock>
- <TextBlock x:Name="EdgeCificationDescriPr" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="80"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Window>
|