3 description "Demo of the box <a href=#bbBasicImageApplication>BasicImageApplication</a> : creates an interactive image thresholding application"
4 author "laurent.guigues@creatis.insa-lyon.fr"
8 include /home/guigues/coding/Sofa/bbtk/packages/wxvtk/bbs/boxes/bbBasicImageApplication
9 #include wxvtk/boxes/bbBasicImageApplication
10 new BasicImageApplication appli
11 set appli.WinTitle "ExampleBasicImageApplication"
14 new BinaryThresholdImageFilter filter
15 connect appli.AlgorithmInput filter.In
16 connect filter.Out appli.AlgorithmOutput
18 ## THE WINDOW FOR PARAMETERS TUNING
19 new LayoutLine parametersWindow
20 new Slider upperThresholdSlider
21 set upperThresholdSlider.Title "upper threshold"
22 set upperThresholdSlider.In 100
23 new Slider lowerThresholdSlider
24 set lowerThresholdSlider.Title "lower threshold"
25 set lowerThresholdSlider.In 0
26 connect lowerThresholdSlider.Widget parametersWindow.Widget1
27 connect upperThresholdSlider.Widget parametersWindow.Widget2
28 connect upperThresholdSlider.Out filter.UpperThreshold
29 connect lowerThresholdSlider.Out filter.LowerThreshold
32 connect parametersWindow.Widget appli.ParametersWidget
33 set appli.ParametersWindowHeight 200
34 set appli.ParametersWindowWidth 400
35 #set appli.Refresh Reactive