X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_Slicer_PKG%2Fsrc%2FbbSlicerMedianFilter.h;fp=bbtk_Slicer_PKG%2Fsrc%2FbbSlicerMedianFilter.h;h=3518df13910cb82e139e534b035dbbb904ddef0c;hb=e7b4e2c9254e9e431f74acc92e3f0d40fc5e7ef6;hp=0000000000000000000000000000000000000000;hpb=cd590ce5fff20d69c7060340235a35e9c2a9ef86;p=creaCLI.git diff --git a/bbtk_Slicer_PKG/src/bbSlicerMedianFilter.h b/bbtk_Slicer_PKG/src/bbSlicerMedianFilter.h new file mode 100644 index 0000000..3518df1 --- /dev/null +++ b/bbtk_Slicer_PKG/src/bbSlicerMedianFilter.h @@ -0,0 +1,62 @@ +#ifndef __bbSlicerMedianFilter_h_INCLUDED__ +#define __bbSlicerMedianFilter_h_INCLUDED__ + +#include "bbSlicer_EXPORT.h" +#include "bbtkAtomicBlackBox.h" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "CreationTool.h" + +namespace bbSlicer { + + class bbSlicer_EXPORT MedianFilter + : + public bbtk::AtomicBlackBox { + BBTK_BLACK_BOX_INTERFACE ( MedianFilter , bbtk::AtomicBlackBox ) ; + + // GENERATED ARGS + +BBTK_DECLARE_INPUT ( neighborhood , std::vector ); +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 ( MedianFilter , bbtk::AtomicBlackBox ) ; + BBTK_NAME ( "MedianFilter" ) ; + BBTK_AUTHOR ( "Bill Lorensen" ) ; + 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." ) ; + BBTK_CATEGORY ( "Filtering.Denoising" ) ; + + // GENERATED DESCRPTION + +BBTK_INPUT(MedianFilter , neighborhood , "neighborhood" , std::vector, ""); +BBTK_INPUT(MedianFilter , inputVolume , "inputVolume" , std::string, ""); +BBTK_INPUT(MedianFilter , outputVolume , "outputVolume" , std::string, ""); + + // EO GENERATED DESCRIPTION + + BBTK_END_DESCRIBE_BLACK_BOX ( MedianFilter ) ; +} + +#endif // __bbSlicerMedianFilter_h_INCLUDED__ + +