]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/bbs/appli/Recalage2D.bbs
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / bbs / appli / Recalage2D.bbs
index eb4817afdd72fd006dd0b98b76aea634f125826d..2420805bc05007c7431df33b95708a59a1947cfa 100644 (file)
@@ -1,3 +1,7 @@
+description "creatisRecalage::Recalage Rigid 2D. "
+category "example"
+author "info-dev@creatis.insa-lyon.fr"
+
 load wx
 load std
 load vtk
@@ -35,6 +39,9 @@ include creaImageIO
 new Gimmick image
 new Gimmick image2
 
+///////////////////////////////////////////////
+//Image Slicers
+//////////////////////////////////////////////
 
 # Create the slicers
 
@@ -43,6 +50,10 @@ new SliceImage imgslice2
   connect image.Out imgslice1.In
   connect image2.Out imgslice2.In
 
+////////////////////////////////////////////
+//Image Viewers
+///////////////////////////////////////////
+
 #Viewer containing image 1
 
 new LayoutLine v1Layout
@@ -59,6 +70,10 @@ new ViewerNV viewer2
   set viewer2.nTypeView "0"
   connect viewer2.Widget v2Layout.Widget1
 
+//////////////////////////////////////
+//Layouts for the images
+//////////////////////////////////////
+
 #LayoutSplit were the images will be
 
 new LayoutSplit initialImages
@@ -67,6 +82,10 @@ new LayoutSplit initialImages
   connect v1Layout.Widget initialImages.Widget1
   connect v2Layout.Widget initialImages.Widget2
 
+////////////////////////////////////////////////////////////////
+//Information Sliders and Buttons for the Recalage
+///////////////////////////////////////////////////////////////
+
 #Layout line that will contain the buttons
 
 new LayoutLine buttonsLayout
@@ -102,6 +121,10 @@ new Slider sliderY
   set sliderY.ReactiveOnTrack "1"
   connect sliderY.Widget buttonsLayout.Widget3
 
+//////////////////////////////////////////////////
+//Transformation Boxes
+//////////////////////////////////////////////////
+
 #Box were the transformation will be made
 
 new Transform2DBox transform
@@ -115,6 +138,10 @@ new ReSlicerBox reslice1
   connect transform.Out reslice1.Transform
   connect imgslice2.Out reslice1.In
 
+//////////////////////////////////////////////////
+//Convolution Filter
+//////////////////////////////////////////////////
+
 #Convolution Filter for both of the Images
 
 new ImageConvolution convol1
@@ -122,6 +149,10 @@ new ImageConvolution convol1
 new ImageConvolution convol2
   connect reslice1.Out convol2.In
 
+////////////////////////////////////////////////
+//Recalage Properties
+////////////////////////////////////////////////
+
 #Image Properties
 
 new ImageRecalageProperties properties
@@ -147,7 +178,7 @@ new Slider sdrF
   set sdrF.ReactiveOnTrack 1
   set sdrF.Max "100"
   set sdrF.Min "0"
-  set sdrF.In "50"
+  set sdrF.In "0"
   set sdrF.Title "Convolution Factor"
 
   connect sdrF.Out convol1.Factor
@@ -257,15 +288,6 @@ new ViewerNV viewerCH
   connect ly.Widget checkerBoard.Widget2
 /////////////end of Checkboard////////////////////
 
-/*
-new checkerView checkerboard
-
-  connect convol1.Out checkerboard.In1
-  connect convol2.Out checkerboard.In2
-
-  connect colorLevel.Out checkerboard.ColorLevel
-  connect windowLevel.Out checkerboard.WindowLevel
-*/
 //////////////Transparency///////////////////////////
 #Image Transparency view
 
@@ -379,9 +401,9 @@ new MultipleInputs mult4
 #Layout for the tabs
 
 new LayoutTab tabs
-  connect checkerBoard.Widget tabs.Widget1
-  connect transparency.Widget tabs.Widget2
-  connect switcher.Widget tabs.Widget3
+   connect switcher.Widget tabs.Widget1
+  connect checkerBoard.Widget tabs.Widget2
+  connect transparency.Widget tabs.Widget3 
 
 #Layout where the images and the buttons will be displayed