]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataToImageData.cxx
#3279 creaVtk Bug New Normal - ImageContinuousErode3D box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataToImageData.cxx
index 7286c24a185d12bbd4e8943d0d9e36cd73ef075e..2e80837c8b0050c437d8e8262755ee3be7a1a5d1 100644 (file)
@@ -88,7 +88,7 @@ printf("EED Warnning!! PolyDataToImageData::Process    Clean this code .........
                stencil->Update();
                stencil->SetStencilData(  dataToStencil->GetOutput() );
                stencil->ReverseStencilOn();
-               stencil->SetBackgroundValue(128);
+               stencil->SetBackgroundValue( bbGetInputBackgroundValue() );
                stencil->Update();
 
                bbSetOutputOut( stencil->GetOutput() );
@@ -105,8 +105,9 @@ void PolyDataToImageData::bbUserSetDefaultValues()
 
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
-   bbSetInputInPolyData(NULL);
-   bbSetInputInImage(NULL);
+       bbSetInputInPolyData(NULL);
+       bbSetInputInImage(NULL);
+       bbSetInputBackgroundValue(255);
  
 }
 //=====