From: Eduardo DAVILA Date: Mon, 6 Jun 2016 19:32:29 +0000 (+0200) Subject: #2945 creaVtk Feature New Normal - ImageSlab box in creaVtk package X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=bfb8618212154f7e526ee7c95701836c4bf860ce;p=creaVtk.git #2945 creaVtk Feature New Normal - ImageSlab box in creaVtk package --- diff --git a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg index 9da0cd1..bf9fa21 100644 --- a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg +++ b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbg @@ -45,7 +45,7 @@ ISEXEC:FALSE PORT In:"0" PORT -Max:"5" +Max:"30" PORT ReactiveOnTrack:"true" FIN_BOX diff --git a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs index 7aca4b0..b0ac3d2 100644 --- a/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs +++ b/bbtk_creaVtk_PKG/bbs/boxes/Slab_Interface-01.bbs @@ -17,7 +17,7 @@ category "" new wx:Slider Box75 set Box75.In "0" - set Box75.Max "5" + set Box75.Max "30" set Box75.ReactiveOnTrack "true" new wx:ComboBox Box76 diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx index 8cb5eda..9b9f33d 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx @@ -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() ); }