]> Creatis software - bbtk.git/commitdiff
Feature unitaryoperation SquareRoot
authordavila <eduardo.davila@creatis.insa-lyon.fr>
Fri, 4 Jul 2014 12:57:45 +0000 (14:57 +0200)
committerdavila <eduardo.davila@creatis.insa-lyon.fr>
Fri, 4 Jul 2014 12:57:45 +0000 (14:57 +0200)
packages/vtk/src/bbvtkUnaryOperations.cxx
packages/vtk/src/bbvtkUnaryOperations.h

index dfc3cc9a894a56d0a9328ed7a3ca1503ee1c1fab..4f62f1a0665746406f8e7e53963fbe531b307b07 100644 (file)
@@ -103,6 +103,10 @@ printf("EED UnaryOperations::Process()  3 \n");
                case 9:
                         ope->SetOperationToAbsoluteValue();
                break;
+               case 10:
+                        ope->SetOperationToSquareRoot();
+               break;
+
 
                        
 /* EED 21Juin 2011 Borrame
index c123ae0f4790138c61f3e5b24a3c731f49b366a8..82e372ffaf0f3d63079d2a7b31646a4ad55065f1 100644 (file)
@@ -74,7 +74,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(UnaryOperations,bbtk::AtomicBlackBox);
   BBTK_CATEGORY("filtre");
   BBTK_INPUT(UnaryOperations,In1,"Image to be operated",vtkImageData*,"");
   BBTK_INPUT(UnaryOperations,InConstant,"Constant that will be used in the operations.",double,"0 default");
-  BBTK_INPUT(UnaryOperations,Operation,"0:Add (Default), 1:subtract, 2:multiply, 3:divide, 4:invert, 5:sin, 6:cos, 7:exp, 8:log, 9:abs????",int,"Addition default");
+  BBTK_INPUT(UnaryOperations,Operation,"0:Add (Default), 1:subtract, 2:multiply, 3:divide, 4:invert, 5:sin, 6:cos, 7:exp, 8:log, 9:abs????, 10:SquareRoot",int,"Addition default");
   BBTK_OUTPUT(UnaryOperations,Out,"",vtkImageData*,"");
 BBTK_END_DESCRIBE_BLACK_BOX(UnaryOperations);
 }