]> Creatis software - bbtk.git/commitdiff
#2865 BBTK Feature New Normal - new option in CleanExternalPlane DimImage+2 (Type 1)
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 27 Jul 2016 15:10:49 +0000 (17:10 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 27 Jul 2016 15:10:49 +0000 (17:10 +0200)
packages/vtk/src/bbvtkCleanExternalPlane.cxx
packages/vtk/src/bbvtkCleanExternalPlane.h

index b6d8a6eea98b20195626935483d6cecffaf63846..aa814e29ae5a8553fa3d014fc8dd1feb90de108b 100644 (file)
@@ -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();
index d10d165108e36ce545bdac647943fe0a08ed7bdc..7dd5eb1e381113f094b29f3bce177061c771357c 100644 (file)
@@ -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);
 //=====