]> Creatis software - creaRigidRegistration.git/commitdiff
Fixed Convolution & Substraction
authortrillos <trillos>
Fri, 16 Oct 2009 14:35:35 +0000 (14:35 +0000)
committertrillos <trillos>
Fri, 16 Oct 2009 14:35:35 +0000 (14:35 +0000)
PackRecalage/src/bbPackRecalageImageConvolution.cxx
PackRecalage/src/bbPackRecalageImageConvolution.h

index e57aedc2059fcc30d11d7ed6507e8076b80bbea8..c37aa3de0672f542bf18c2151b9d9f6c5a554a13 100644 (file)
@@ -11,6 +11,7 @@ void ImageConvolution::Process()
        {
                convolution->setImage(bbGetInputIn());
                convolution->setFactor(bbGetInputFactor());
+               convolution->setOn(bbGetInputOn());
                convolution->Run();
                bbSetOutputOut(convolution->getImage());
        }
@@ -21,6 +22,7 @@ void ImageConvolution::bbUserSetDefaultValues()
        bbSetInputIn(NULL);
        bbSetOutputOut(NULL);
        bbSetInputFactor(5.0);
+       bbSetInputOn(false);
 }
 
 void ImageConvolution::bbUserInitializeProcessing()
index 8ead42a04ab12831d71afa3ea78451a0ca907ed8..d95c8da0daf0af49ffc2602c45a1e6f48000f324 100644 (file)
@@ -17,6 +17,7 @@ class bbPackRecalage_EXPORT ImageConvolution
   BBTK_BLACK_BOX_INTERFACE(ImageConvolution,bbtk::AtomicBlackBox);
   BBTK_DECLARE_INPUT(In,vtkImageData*);
   BBTK_DECLARE_INPUT(Factor,double);
+  BBTK_DECLARE_INPUT(On,bool);
   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
   BBTK_PROCESS(Process);
   void Process();
@@ -32,6 +33,7 @@ BBTK_DESCRIPTION("Processes an image through different convolution matrix (Edge
 BBTK_CATEGORY("filter");
 BBTK_INPUT(ImageConvolution,In,"Image to be filetered",vtkImageData*,"");
 BBTK_INPUT(ImageConvolution,Factor,"Factor by how the edges will be represented",double,"");
+BBTK_INPUT(ImageConvolution,On,"Boolean that represents if the filter is turned on. True = On.",bool,"");
 BBTK_OUTPUT(ImageConvolution,Out,"Filtered Image",vtkImageData*,"");
 BBTK_END_DESCRIBE_BLACK_BOX(ImageConvolution);
 }