1 #ifndef __bbSlicerMedianFilter_h_INCLUDED__
2 #define __bbSlicerMedianFilter_h_INCLUDED__
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
20 #include "CreationTool.h"
24 class bbSlicer_EXPORT MedianFilter
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( MedianFilter , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( neighborhood , std::vector<int> );
32 BBTK_DECLARE_INPUT ( inputVolume , std::string );
33 BBTK_DECLARE_INPUT ( outputVolume , std::string );
37 BBTK_PROCESS ( Process ) ;
40 void execute ( std::string lib , int _argc , char * _argv[] ) ;
43 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( MedianFilter , bbtk::AtomicBlackBox ) ;
44 BBTK_NAME ( "MedianFilter" ) ;
45 BBTK_AUTHOR ( "Bill Lorensen" ) ;
46 BBTK_DESCRIPTION ( "The MedianImageFilter is commonly used as a robust approach for noise reduction. This filter is particularly efficient against 'salt-and-pepper' noise. In other words, it is robust to the presence of gray-level outliers. MedianImageFilter computes the value of each output pixel as the statistical median of the neighborhood of values around the corresponding input pixel." ) ;
47 BBTK_CATEGORY ( "Filtering.Denoising" ) ;
49 // GENERATED DESCRPTION
51 BBTK_INPUT(MedianFilter , neighborhood , "neighborhood" , std::vector<int>, "");
52 BBTK_INPUT(MedianFilter , inputVolume , "inputVolume" , std::string, "");
53 BBTK_INPUT(MedianFilter , outputVolume , "outputVolume" , std::string, "");
55 // EO GENERATED DESCRIPTION
57 BBTK_END_DESCRIBE_BLACK_BOX ( MedianFilter ) ;
60 #endif // __bbSlicerMedianFilter_h_INCLUDED__