]> Creatis software - creaCLI.git/blob - ModuleCall/GenSrc/bbSlicerCurvatureAnisotropicDiffusion.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerCurvatureAnisotropicDiffusion.h
1 #ifndef __bbSlicerCurvatureAnisotropicDiffusion_h_INCLUDED__
2 #define __bbSlicerCurvatureAnisotropicDiffusion_h_INCLUDED__
3
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
6
7 #include <vector>
8 #include <cstdlib>
9 #include <dlfcn.h>
10 #include <sstream>
11 #include <fstream>
12 #include <iostream>
13
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
19
20 #include "CreationTool.h"
21
22 namespace bbSlicer {
23
24     class bbSlicer_EXPORT CurvatureAnisotropicDiffusion
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( CurvatureAnisotropicDiffusion , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( conductance , double );
32 BBTK_DECLARE_INPUT ( numberOfIterations , int );
33 BBTK_DECLARE_INPUT ( timeStep , double );
34 BBTK_DECLARE_INPUT ( inputVolume , std::string );
35 BBTK_DECLARE_INPUT ( outputVolume , std::string );
36
37         // EO GENERATED ARGS
38
39         BBTK_PROCESS ( Process ) ;
40         void Process ( ) ;
41     private:
42         void execute ( std::string lib , int _argc , char * _argv[] ) ;
43     } ;
44
45     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( CurvatureAnisotropicDiffusion , bbtk::AtomicBlackBox ) ;
46     BBTK_NAME ( "CurvatureAnisotropicDiffusion" ) ;
47     BBTK_AUTHOR ( "Bill Lorensen" ) ;
48     BBTK_DESCRIPTION ( "Performs anisotropic diffusion on an image using a modified curvature diffusion equation MCDE.MCDE does not exhibit the edge enhancing properties of classic anisotropic diffusion, which can under certain conditions undergo a 'negative' diffusion, which enhances the contrast of edges.  Equations of the form of MCDE always undergo positive diffusion, with the conductance term only varying the strength of that diffusion.  Qualitatively, MCDE compares well with other non-linear diffusion techniques.  It is less sensitive to contrast than classic Perona-Malik style diffusion, and preserves finer detailed structures in images.  There is a potential speed trade-off for using this function in place of Gradient Anisotropic Diffusion.  Each iteration of the solution takes roughly twice as long.  Fewer iterations, however, may be required to reach an acceptable solution." ) ;
49     BBTK_CATEGORY ( "Filtering.Denoising" ) ;
50
51     // GENERATED DESCRPTION
52     
53 BBTK_INPUT(CurvatureAnisotropicDiffusion , conductance , "conductance" , double, "");
54 BBTK_INPUT(CurvatureAnisotropicDiffusion , numberOfIterations , "numberOfIterations" , int, "");
55 BBTK_INPUT(CurvatureAnisotropicDiffusion , timeStep , "timeStep" , double, "");
56 BBTK_INPUT(CurvatureAnisotropicDiffusion , inputVolume , "inputVolume" , std::string, "");
57 BBTK_INPUT(CurvatureAnisotropicDiffusion , outputVolume , "outputVolume" , std::string, "");
58
59     // EO GENERATED DESCRIPTION
60
61     BBTK_END_DESCRIBE_BLACK_BOX ( CurvatureAnisotropicDiffusion ) ;
62 }
63
64 #endif // __bbSlicerCurvatureAnisotropicDiffusion_h_INCLUDED__
65
66