stencil->Update();
stencil->SetStencilData( dataToStencil->GetOutput() );
stencil->ReverseStencilOn();
- stencil->SetBackgroundValue(128);
+ stencil->SetBackgroundValue( bbGetInputBackgroundValue() );
stencil->Update();
bbSetOutputOut( stencil->GetOutput() );
// 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);
}
//=====