]> Creatis software - creaVtk.git/commitdiff
#2945 creaVtk Feature New Normal - ImageSlab box in creaVtk package
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 6 Jun 2016 19:32:29 +0000 (21:32 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 6 Jun 2016 19:32:29 +0000 (21:32 +0200)
bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg
bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs
bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx

index 9da0cd18a26808a54cc38724df6c1d0e4ff6260b..bf9fa21a1ed61797955fb5c6a1089caaa052c07b 100644 (file)
@@ -45,7 +45,7 @@ ISEXEC:FALSE
 PORT
 In:"0"
 PORT
-Max:"5"
+Max:"30"
 PORT
 ReactiveOnTrack:"true"
 FIN_BOX
index 7aca4b04009f8655d05465be66686fda323f3c16..b0ac3d268530e45239e799fbaf37917e5e5a668d 100644 (file)
@@ -17,7 +17,7 @@ category "<VOID>"
 
 new wx:Slider Box75
   set Box75.In "0"
-  set Box75.Max "5"
+  set Box75.Max "30"
   set Box75.ReactiveOnTrack "true"
 
 new wx:ComboBox Box76
index 8cb5edacb9943a370186ca4a47d805789e4f1a69..9b9f33d1026c93f9c6d8904e19167afd980d4f6e 100644 (file)
@@ -33,7 +33,6 @@ void ImageSlab::Process()
        {
                firsttime=false;
                imageSlab = vtkImageSlab::New();
-               imageSlab->MultiSliceOutputOff();
        }
 
        if (bbGetInputType()==0) { imageSlab->SetOperationToMean(); }
@@ -42,6 +41,8 @@ void ImageSlab::Process()
        if (bbGetInputType()==3) { imageSlab->SetOperationToMax(); }
 
        imageSlab->SetInput( bbGetInputIn() );  
+       imageSlab->MultiSliceOutputOff();
+       imageSlab->SetOutputScalarTypeToInputScalarType();
        bbSetOutputOut( imageSlab->GetOutput() );
 
 }