1
0

MainWindow.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <Window x:Class="UltrasoundImageDenoiseTest.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:UltrasoundImageDenoiseTest"
  7. mc:Ignorable="d"
  8. Title="超声图像降噪处理" Height="450" Width="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="50"/>
  13. <RowDefinition Height="50"/>
  14. </Grid.RowDefinitions>
  15. <Grid Grid.Row="0">
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="0.5*"/>
  18. <ColumnDefinition Width="0.5*"/>
  19. </Grid.ColumnDefinitions>
  20. <Grid Grid.Column="0">
  21. <Image x:Name="ImgOrig" Margin="4,4,4,4" Source="{Binding}"/>
  22. </Grid>
  23. <Grid Grid.Column="1">
  24. <Image x:Name="ImgResult" Margin="4,4,4,4" Source="{Binding}"/>
  25. </Grid>
  26. </Grid>
  27. <Grid Grid.Row="1">
  28. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  29. <Label Content="输入图像" HorizontalAlignment="Left" Margin="150,1,0,0" VerticalAlignment="Top"/>
  30. <Label Content="输出图像" HorizontalAlignment="Left" Margin="360,1,0,0" VerticalAlignment="Top"/>
  31. </StackPanel>
  32. </Grid>
  33. <Grid Grid.Row="2">
  34. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  35. <Button Margin="4,2,2,4" Content="单张图像处理" Width="120" FontSize="16" Click="DetectOneImageClicked"/>
  36. <Button Margin="4,2,2,4" Content="连续图像处理" Width="120" FontSize="16" Click="DetectImageInFolderClicked"/>
  37. <TextBlock x:Name="StatusText1" Width="200" Margin="4,4,4,4" VerticalAlignment="Center"/>
  38. </StackPanel>
  39. </Grid>
  40. </Grid>
  41. </Window>