1
0

MainWindow.xaml 6.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <Window x:Class="ThyroidDescriptionUI.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ThyroidDescriptionUI"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="600" Width="1200">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="40"/>
  13. <RowDefinition Height="60"/>
  14. <RowDefinition Height="40"/>
  15. <RowDefinition Height="40"/>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="*"/>
  19. <ColumnDefinition Width="*"/>
  20. </Grid.ColumnDefinitions>
  21. <Grid Grid.Row="0" Grid.Column="0">
  22. <Image x:Name="OrigImage"></Image>
  23. </Grid>
  24. <Grid Grid.Row="0" Grid.Column="1">
  25. <Image x:Name="DstImage"></Image>
  26. </Grid>
  27. <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
  28. <StackPanel Orientation="Horizontal">
  29. <Button Content="加载图像数据库" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadDataBaseClick"/>
  30. <Button Content="加载一幅图像" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadOneImageClick"/>
  31. <Button Content="甲状腺描述" Name ="button1" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnThyroidDescriClick"/>
  32. <TextBlock Text="耗时:" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="30"/>
  33. <TextBlock x:Name="ElapsedTime" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="60"/>
  34. <TextBlock Text="ms" FontSize="12" Margin="4,12" VerticalAlignment="Center"/>
  35. </StackPanel>
  36. </Grid>
  37. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
  38. <StackPanel Orientation="Horizontal">
  39. <TextBlock FontSize="12" Margin="4,12,4,10" VerticalAlignment="Center" Width="45" Height="18"><Run Text="回声GT:"/></TextBlock>
  40. <TextBlock x:Name="EchoPatternDescriGT" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="65"/>
  41. <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="45" Height="18"><Run Text="形状GT:"/></TextBlock>
  42. <TextBlock x:Name="ShapeDescriGT" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="70"/>
  43. <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="45" Height="18"><Run Text="边缘GT:"/></TextBlock>
  44. <TextBlock x:Name="MarginDescriGT" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="65"/>
  45. <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="95" Height="18"><Run Text="局灶性强回声GT:"/></TextBlock>
  46. <TextBlock x:Name="EchogenicFociDescriGT" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="65"/>
  47. </StackPanel>
  48. </Grid>
  49. <Grid Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2">
  50. <StackPanel Orientation="Horizontal">
  51. <TextBlock FontSize="12" Margin="4,12,4,10" VerticalAlignment="Center" Width="35" Height="18"><Run Text="回声:"/></TextBlock>
  52. <TextBlock x:Name="EchoPatternDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="65"/>
  53. <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="35" Height="18"><Run Text="形状:"/></TextBlock>
  54. <TextBlock x:Name="ShapeDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="70"/>
  55. <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="35" Height="18"><Run Text="边缘:"/></TextBlock>
  56. <TextBlock x:Name="MarginDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="65"/>
  57. <TextBlock FontSize="12" Margin="4,12,4,0" VerticalAlignment="Top" Width="80" Height="18"><Run Text="局灶性强回声:"/></TextBlock>
  58. <TextBlock x:Name="EchogenicFociDescri" FontSize="12" Margin="4,4,4,4" VerticalAlignment="Center" Width="65"/>
  59. </StackPanel>
  60. </Grid>
  61. <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="1">
  62. <StackPanel Orientation="Horizontal" Margin="0,0,-502,0">
  63. <Button Content="保存病灶结果图像" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadImageClick"/>
  64. <Button Content="合成新DB" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnCreatDbClick"/>
  65. <Button Content="加载多幅图像" FontSize="12" Margin="4,4,4,0" Width="100" Click="OnLoadOneImagesClick" Height="32" VerticalAlignment="Top"/>
  66. <Button Content="Id改变" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnLoadNameChangeClick"/>
  67. <Button Content="合并db保留轮廓" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBClick"/>
  68. <Button Content="比较db文件" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBCompareClick"/>
  69. <Button Content="Clear" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBClearClick"/>
  70. <Button Content="添加病灶信息" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBAddClick"/>
  71. <!--<Button Content="loadmodel1" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBLoadModel1"/>
  72. <Button Content="modelpredict" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBModelPredict"/>
  73. <Button Content="model" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBModelPredictImages"/>-->
  74. </StackPanel>
  75. </Grid>
  76. <Grid Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="1">
  77. <StackPanel Orientation="Horizontal" Margin="0,0,-502,0">
  78. <Button Content="加载模型" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBLoadModel1"/>
  79. <Button Content="模型单张预测" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBModelPredict"/>
  80. <Button Content="模型多图处理" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBModelPredictImages"/>
  81. <Button Content="全模型单张" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBModelResultPredictImages"/>
  82. <Button Content="全模型多张" FontSize="12" Margin="4,4,4,4" Width="100" Click="OnDBAllModelResultPredictImages"/>
  83. </StackPanel>
  84. </Grid>
  85. </Grid>
  86. </Window>