]> Creatis software - creaCLI.git/blobdiff - ModuleCall/GenSrc/bbSlicerGrayscaleGrindPeak.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerGrayscaleGrindPeak.h
diff --git a/ModuleCall/GenSrc/bbSlicerGrayscaleGrindPeak.h b/ModuleCall/GenSrc/bbSlicerGrayscaleGrindPeak.h
new file mode 100644 (file)
index 0000000..0b43992
--- /dev/null
@@ -0,0 +1,60 @@
+#ifndef __bbSlicerGrayscaleGrindPeak_h_INCLUDED__
+#define __bbSlicerGrayscaleGrindPeak_h_INCLUDED__
+
+#include "bbSlicer_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+
+#include <vector>
+#include <cstdlib>
+#include <dlfcn.h>
+#include <sstream>
+#include <fstream>
+#include <iostream>
+
+#include <ModuleDescriptionUtilities.h>
+#include <ModuleDescriptionParser.h>
+#include <ModuleParameterGroup.h>
+#include <ModuleDescription.h>
+#include <ModuleParameter.h>
+
+#include "CreationTool.h"
+
+namespace bbSlicer {
+
+    class bbSlicer_EXPORT GrayscaleGrindPeak
+    :
+    public bbtk::AtomicBlackBox {
+        BBTK_BLACK_BOX_INTERFACE ( GrayscaleGrindPeak , bbtk::AtomicBlackBox ) ;
+
+        // GENERATED ARGS        
+        
+BBTK_DECLARE_INPUT ( inputVolume , std::string );
+BBTK_DECLARE_INPUT ( outputVolume , std::string );
+
+        // EO GENERATED ARGS
+
+        BBTK_PROCESS ( Process ) ;
+        void Process ( ) ;
+    private:
+        void execute ( std::string lib , int _argc , char * _argv[] ) ;
+    } ;
+
+    BBTK_BEGIN_DESCRIBE_BLACK_BOX ( GrayscaleGrindPeak , bbtk::AtomicBlackBox ) ;
+    BBTK_NAME ( "GrayscaleGrindPeak" ) ;
+    BBTK_AUTHOR ( "Bill Lorensen" ) ;
+    BBTK_DESCRIPTION ( "GrayscaleGrindPeakImageFilter removes peaks in a grayscale image. Peaks are local maxima in the grayscale topography that are not connected to boundaries of the image. Gray level values adjacent to a peak are extrapolated through the peak.This filter is used to smooth over local maxima without affecting the values of local minima.  If you take the difference between the output of this filter and the original image and perhaps threshold the difference above a small value, you'll obtain a map of the local maxima.This filter uses the GrayscaleGeodesicDilateImageFilter.  It provides its own input as the 'mask' input to the geodesic erosion.  The 'marker' image for the geodesic erosion is constructed such that boundary pixels match the boundary pixels of the input image and the interior pixels are set to the minimum pixel value in the input image.This filter is the dual to the GrayscaleFillholeImageFilter which implements the Fillhole algorithm.  Since it is a dual, it is somewhat superfluous but is provided as a convenience.Geodesic morphology and the Fillhole algorithm is described in Chapter 6 of Pierre Soille's book 'Morphological Image Analysis: Principles and Applications', Second Edition, Springer, 2003.A companion filter, Grayscale Fill Hole, fills holes in grayscale images." ) ;
+    BBTK_CATEGORY ( "Filtering.Morphology" ) ;
+
+    // GENERATED DESCRPTION
+    
+BBTK_INPUT(GrayscaleGrindPeak , inputVolume , "inputVolume" , std::string, "");
+BBTK_INPUT(GrayscaleGrindPeak , outputVolume , "outputVolume" , std::string, "");
+
+    // EO GENERATED DESCRIPTION
+
+    BBTK_END_DESCRIBE_BLACK_BOX ( GrayscaleGrindPeak ) ;
+}
+
+#endif // __bbSlicerGrayscaleGrindPeak_h_INCLUDED__
+
+