25 #ifndef WMHISTOGRAMEQUALIZATION_H
26 #define WMHISTOGRAMEQUALIZATION_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"
58 virtual const std::string
getName()
const;
72 virtual std::shared_ptr< WModule >
factory()
const;
100 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_input;
105 std::shared_ptr< WModuleOutputData< WDataSetScalar > >
m_output;
This modules takes a dataset and equalizes its histogram.
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...
WMHistogramEqualization()
Default constructor.
virtual void connectors()
Initialize the connectors this module is using.
WPropInt m_histogramResolution
Resolution of the initial histogram.
WPropBool m_equalize
If true, histogram equalization is turned on.
virtual void moduleMain()
Entry point after loading the module.
WPropGroup m_equalizing
Group for keeping all the equalizing-related props.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_input
An input connector used to get datasets from other modules.
virtual const std::string getName() const
Gives back the name of this module.
WPropDouble m_clampPerc
How many percent should be clamped from the histogram.
virtual ~WMHistogramEqualization()
Destructor.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WModuleOutputData< WDataSetScalar > > m_output
The output connector used to provide the calculated data to other modules.
WPropGroup m_clamping
Group for keeping all the clamping related props.
virtual void properties()
Initialize the properties for this module.
WPropBool m_clamp
True if the values should be clamped before further processing.
WPropInt m_cdfResolution
Resolution with which the CDF gets calculated.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
Class representing a single module of OpenWalnut.