From: Eduardo DAVILA Date: Wed, 27 Jul 2016 15:10:49 +0000 (+0200) Subject: #2865 BBTK Feature New Normal - new option in CleanExternalPlane DimImage+2 (Type 1) X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtk.git;a=commitdiff_plain;h=7417646122091ab998bef1f8570663288338c8f4 #2865 BBTK Feature New Normal - new option in CleanExternalPlane DimImage+2 (Type 1) --- diff --git a/packages/vtk/src/bbvtkCleanExternalPlane.cxx b/packages/vtk/src/bbvtkCleanExternalPlane.cxx index b6d8a6e..aa814e2 100644 --- a/packages/vtk/src/bbvtkCleanExternalPlane.cxx +++ b/packages/vtk/src/bbvtkCleanExternalPlane.cxx @@ -140,12 +140,20 @@ void CleanExternalPlane::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') +// Nothing to do + if (bbGetInputType()==-1) + { + bbSetOutputOut( bbGetInputIn() ); + } + +// Clean external planes if (bbGetInputType()==0) { CleanTypeA( bbGetInputIn() ); bbSetOutputOut( bbGetInputIn() ); } +// Add new faces and clean the external planes if (bbGetInputType()==1) { CleanTypeB(); diff --git a/packages/vtk/src/bbvtkCleanExternalPlane.h b/packages/vtk/src/bbvtkCleanExternalPlane.h index d10d165..7dd5eb1 100644 --- a/packages/vtk/src/bbvtkCleanExternalPlane.h +++ b/packages/vtk/src/bbvtkCleanExternalPlane.h @@ -68,7 +68,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(CleanExternalPlane,bbtk::AtomicBlackBox); BBTK_DESCRIPTION("change the gray level of the externals planes of the image to 0 value."); BBTK_CATEGORY("filter"); BBTK_INPUT(CleanExternalPlane,In,"Input image",vtkImageData*,""); - BBTK_INPUT(CleanExternalPlane,Type,"0 = (default) not modifie Dimention. 1 = Add outside plane (Dimension of image change)",int,""); + BBTK_INPUT(CleanExternalPlane,Type,"-1= nothing to do, 0 = (default) not modifie Dimention. 1 = Add outside plane (Dimension of image change)",int,""); BBTK_OUTPUT(CleanExternalPlane,Out,"Output image",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(CleanExternalPlane); //=====