From: Eduardo DAVILA Date: Mon, 10 Apr 2017 10:45:08 +0000 (+0200) Subject: #3087 BBTK Feature New Normal - BinaryOperation Min Max option X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ab180f23cb155da45dce2bc83cf79955950dad7b;p=bbtk.git #3087 BBTK Feature New Normal - BinaryOperation Min Max option --- diff --git a/kernel/appli/bbPlugPackage/bbPlugPackage.cpp b/kernel/appli/bbPlugPackage/bbPlugPackage.cpp index bf60814..8ced939 100644 --- a/kernel/appli/bbPlugPackage/bbPlugPackage.cpp +++ b/kernel/appli/bbPlugPackage/bbPlugPackage.cpp @@ -41,18 +41,18 @@ int main(int argc, char **argv) return (int)1; } - std::string path(argv[1]); + std::string path = argv[1] ; #ifdef WIN32 std::string fname = path + "\\bbtkPackage"; #else - std::string fname = path + "/bbtkPackage"; + std::string fname = path + "/bbtkPackage" ; #endif - if ( ! Utilities::FileExists( fname ) ) { - std::cout << "* ERROR : The directory '"<SetOperationToDivide(); break; + case 4: + ope->SetOperationToMax(); + break; + case 5: + ope->SetOperationToMin(); + break; default: std::cout << "Invalid Operation" << std::endl; return; diff --git a/packages/vtk/src/bbvtkBinaryOperations.h b/packages/vtk/src/bbvtkBinaryOperations.h index 9e6bd03..45602ab 100644 --- a/packages/vtk/src/bbvtkBinaryOperations.h +++ b/packages/vtk/src/bbvtkBinaryOperations.h @@ -66,14 +66,14 @@ class bbvtk_EXPORT BinaryOperations }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(BinaryOperations,bbtk::AtomicBlackBox); -BBTK_NAME("BinaryOperations"); -BBTK_AUTHOR("Info-Dev"); -BBTK_DESCRIPTION("Arithmetic operations between two images: add, substract, multiply, divide"); -BBTK_CATEGORY("filter"); -BBTK_INPUT(BinaryOperations,In1,"first image to be operated",vtkImageData*,"NULL default"); -BBTK_INPUT(BinaryOperations,In2,"second image to be operated",vtkImageData*,"NULL default"); -BBTK_INPUT(BinaryOperations,Operation,"0:Add (default) , 1:subtract, 2:multiply, 3:divide",int,""); -BBTK_OUTPUT(BinaryOperations,Out,"",vtkImageData*,""); + BBTK_NAME("BinaryOperations"); + BBTK_AUTHOR("Info-Dev"); + BBTK_DESCRIPTION("Arithmetic operations between two images"); + BBTK_CATEGORY("filter"); + BBTK_INPUT(BinaryOperations,In1,"first image to be operated",vtkImageData*,"NULL default"); + BBTK_INPUT(BinaryOperations,In2,"second image to be operated",vtkImageData*,"NULL default"); + BBTK_INPUT(BinaryOperations,Operation,"0:Add (default) , 1:subtract, 2:multiply, 3:divide, 4=Max, 5=Min",int,""); + BBTK_OUTPUT(BinaryOperations,Out,"",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(BinaryOperations); } // EO namespace bbSimpleProcessing