-new Slider upperThresholdSlider
- set upperThresholdSlider.Title "UpperThreshold"
- set upperThresholdSlider.Max 50
- set upperThresholdSlider.In 500
- set upperThresholdSlider.ChangeResolution 1
-
-new Slider smoothSlider
- set smoothSlider.Title "Smooth"
- set smoothSlider.Max 10
- set smoothSlider.In 1
- set smoothSlider.ChangeResolution 1
-
-new CommandButton refresh
- set refresh.Label "Refresh"
- set refresh.In "exec isoextractorthreshold;exec isoextractorsmooth;exec mainSplit"
-
-new MultipleInputs refreshimages
- //connect slider.BoxChange refreshimages.In1
- connect upperThresholdSlider.BoxChange refreshimages.In2
- connect lowerThresholdSlider.BoxChange refreshimages.In3
- connect smoothSlider.BoxChange refreshimages.In4
+ new LayoutSplit splitUp
+ set splitUp.Proportion 38
+ connect splitUp.Widget mainSplit.Widget1
+
+ new LayoutLine toolLayout
+ set toolLayout.Orientation H
+ connect toolLayout.Widget splitUp.Widget1
+
+ new LayoutLine sliderLayout
+ set sliderLayout.Orientation V
+ connect sliderLayout.Widget toolLayout.Widget1
+
+ new Slider sliceSlider
+ set sliceSlider.Title "Slice"
+ set sliceSlider.ReactiveOnTrack true
+ connect sliceSlider.Widget sliderLayout.Widget1
+
+ new Slider lowerThresholdSlider
+ set lowerThresholdSlider.Title "LowerThreshold"
+ set lowerThresholdSlider.Max 200
+ set lowerThresholdSlider.In 10
+ set lowerThresholdSlider.ChangeResolution 1
+ connect lowerThresholdSlider.Widget sliderLayout.Widget2
+
+ new Slider upperThresholdSlider
+ set upperThresholdSlider.Title "UpperThreshold"
+ set upperThresholdSlider.Max 500
+ set upperThresholdSlider.In 150
+ set upperThresholdSlider.ChangeResolution 1
+ connect upperThresholdSlider.Widget sliderLayout.Widget3
+
+ new Slider smoothSlider
+ set smoothSlider.Title "Smooth"
+ set smoothSlider.Max 10
+ set smoothSlider.In 3
+ set smoothSlider.ChangeResolution 1
+ connect smoothSlider.Widget sliderLayout.Widget4
+
+ new LayoutLine buttonLayout
+ set buttonLayout.Orientation H
+ connect buttonLayout.Widget toolLayout.Widget2
+
+ new ColourSelectorButton colourThreshold
+ set colourThreshold.In "1 0 0"
+ connect colourThreshold.Widget buttonLayout.Widget1
+
+ new ColourSelectorButton colourSmooth
+ set colourSmooth.In "1 1 0"
+ connect colourSmooth.Widget buttonLayout.Widget2
+
+
+/*
+ new CommandButton refresh
+ set refresh.Label "Refresh (to be used once at start time)"
+ connect refresh.Widget buttonLayout.Widget3
+*/
+ new LayoutLine layout2D
+ set layout2D.Orientation H
+ connect layout2D.Widget splitUp.Widget2
+
+ new Viewer2D viewer2DImageOriginal
+ connect viewer2DImageOriginal.Widget layout2D.Widget1
+
+ new Viewer2D viewer2DImageSegmented
+ connect viewer2DImageSegmented.Widget layout2D.Widget2
+
+ new Viewer2D viewer2DImageSmooth
+ connect viewer2DImageSmooth.Widget layout2D.Widget3