25 #ifndef WMDISTANCEMAP_H
26 #define WMDISTANCEMAP_H
31 #include "core/dataHandler/WDataSetScalar.h"
32 #include "core/kernel/WModule.h"
33 #include "core/kernel/WModuleInputData.h"
34 #include "core/kernel/WModuleOutputData.h"
62 virtual const std::string
getName()
const;
76 virtual std::shared_ptr< WModule >
factory()
const;
102 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_input;
112 std::shared_ptr< WModuleOutputData< WDataSetScalar > >
m_output;
127 std::shared_ptr< WValueSet< float > >
createOffset( std::shared_ptr< const WDataSetScalar > dataSet );
137 double xxgauss(
double x,
double sigma );
Computes a distance map from an anatomy dataset.
std::shared_ptr< WDataSetScalar > m_dataSet
Source dataset.
virtual const std::string getDescription() const
Gives back a description of this module.
std::shared_ptr< WDataSetScalar > m_distanceMapDataSet
Target dataset.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_input
Input connector required by this module.
virtual void moduleMain()
Entry point after loading the module.
std::shared_ptr< WValueSet< float > > createOffset(std::shared_ptr< const WDataSetScalar > dataSet)
Function to create a distance map from Anatomy data set.
virtual std::shared_ptr< WModule > factory() const
Due to the prototype design pattern used to build modules, this method returns a new instance of this...
double xxgauss(double x, double sigma)
Gauss function.
virtual const std::string getName() const
Gives back the name of this module.
virtual void connectors()
Initialize the connectors this module is using.
WMDistanceMap()
Standard constructor.
virtual void properties()
Initialize the properties for this module.
std::shared_ptr< WModuleOutputData< WDataSetScalar > > m_output
Connector to provide the distance map to other modules.
friend class WMDistanceMapTest
Only UnitTests may be friends.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
~WMDistanceMap()
Destructor.
Class representing a single module of OpenWalnut.