]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkImageThresholdConnectivity.h
#3498 Connectivity Filter Threshold
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageThresholdConnectivity.h
index ec9bcfad544381158d35f945741b89f6a68b17b3..fc45bf2f0dc0f64dbda558ce1de4fd112716a9ed 100644 (file)
@@ -27,11 +27,18 @@ class bbcreaVtk_EXPORT ImageThresholdConnectivity
   BBTK_DECLARE_INPUT(LstX,std::vector<int>);
   BBTK_DECLARE_INPUT(LstY,std::vector<int>);
   BBTK_DECLARE_INPUT(LstZ,std::vector<int>);
+  BBTK_DECLARE_INPUT(Threshold,std::vector<double>);
   BBTK_DECLARE_INPUT(MaskValue,std::vector<double>);
   BBTK_DECLARE_INPUT(Border,int);
   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
   BBTK_PROCESS(Process);
   void Process();
+    
+    
+    virutal void bbSetStatusAndPropagate(BlackBoxInputConnector* c, IOStatus s);
+
+
+    
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
@@ -49,6 +56,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity,bbtk::AtomicBlackBox);
   BBTK_INPUT(ImageThresholdConnectivity,LstY,"LstY seeds in voxels",std::vector<int>,"");
   BBTK_INPUT(ImageThresholdConnectivity,LstZ,"LstZ seeds in voxels",std::vector<int>,"");
   BBTK_INPUT(ImageThresholdConnectivity,MaskValue,"( default [O 255] )    [Out In] values of the output mask",std::vector<double>,"");
+  BBTK_INPUT(ImageThresholdConnectivity,Threshold,"( default [O 100] )    [down upper] threshold to be segmented",std::vector<double>,"");
   BBTK_INPUT(ImageThresholdConnectivity,Border,"(default 10)Border of the min and max positions",int,"");
 
   BBTK_OUTPUT(ImageThresholdConnectivity,Out,"Output image",vtkImageData*,"");