]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkImageThreshold.h
#3360 creaVtk Feature New Normal - box ImageThreshold
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageThreshold.h
diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageThreshold.h b/bbtk_creaVtk_PKG/src/bbcreaVtkImageThreshold.h
new file mode 100644 (file)
index 0000000..7a5f2f2
--- /dev/null
@@ -0,0 +1,60 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbcreaVtkImageThreshold_h_INCLUDED__
+#define __bbcreaVtkImageThreshold_h_INCLUDED__
+
+#include "bbcreaVtk_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+#include "vtkImageData.h"
+#include <vtkImageThreshold.h>
+
+namespace bbcreaVtk
+{
+
+class bbcreaVtk_EXPORT ImageThreshold
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(ImageThreshold,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+  BBTK_DECLARE_INPUT(In,vtkImageData*);
+  BBTK_DECLARE_INPUT(Lower,double);
+  BBTK_DECLARE_INPUT(Upper,double);
+  BBTK_DECLARE_INPUT(InValue,double);
+  BBTK_DECLARE_INPUT(OutValue,double);
+  BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
+  BBTK_PROCESS(Process);
+  void Process();
+
+       vtkImageThreshold *filter;
+
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThreshold,bbtk::AtomicBlackBox);
+  BBTK_NAME("ImageThreshold");
+  BBTK_AUTHOR("InfoDev");
+  BBTK_DESCRIPTION("No Description.");
+  BBTK_CATEGORY("empty");
+  BBTK_INPUT(ImageThreshold,In,"Input image",vtkImageData*,"");
+  BBTK_INPUT(ImageThreshold,Lower,"(default 0) Lower threshold",double,"");
+  BBTK_INPUT(ImageThreshold,Upper,"(default 10000) Upper threshold",double,"");
+  BBTK_INPUT(ImageThreshold,InValue,"(default 255) In value",double,"");
+  BBTK_INPUT(ImageThreshold,OutValue,"(default 0) Out Value",double,"");
+  BBTK_OUTPUT(ImageThreshold,Out,"Output image",vtkImageData*,"");
+BBTK_END_DESCRIBE_BLACK_BOX(ImageThreshold);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbcreaVtk
+
+#endif // __bbcreaVtkImageThreshold_h_INCLUDED__
+