Mantid
|
PeakBackground : Extension of HardThresholdBackground to consider regions of the image as background if they are outside the peaks radius limits (no mater what their theshold is). More...
#include <PeakBackground.h>
Public Member Functions | |
PeakBackground * | clone () const override |
Virutal constructor. More... | |
void | configureIterator (Mantid::API::IMDIterator *const iterator) const override |
Overriden configure iterator function. More... | |
bool | isBackground (Mantid::API::IMDIterator *iterator) const override |
Overriden is background function. More... | |
PeakBackground (Mantid::API::IPeaksWorkspace_const_sptr peaksWS, const double &radiusEstimate, const double &thresholdSignal, const Mantid::API::MDNormalization normalisation, const Mantid::Kernel::SpecialCoordinateSystem coordinates) | |
Constructor. More... | |
Public Member Functions inherited from Mantid::Crystal::HardThresholdBackground | |
HardThresholdBackground * | clone () const override |
Virtual constructor. More... | |
void | configureIterator (Mantid::API::IMDIterator *const iterator) const override |
Overriden configureIterator. More... | |
HardThresholdBackground (const double thresholdSignal, const Mantid::API::MDNormalization normalization) | |
Contructor. More... | |
bool | isBackground (Mantid::API::IMDIterator *iterator) const override |
Overriden isBackground. More... | |
Public Member Functions inherited from Mantid::Crystal::BackgroundStrategy | |
virtual BackgroundStrategy * | clone () const =0 |
virtual void | configureIterator (Mantid::API::IMDIterator *const iterator) const =0 |
virtual bool | isBackground (Mantid::API::IMDIterator *const iterator) const =0 |
virtual | ~BackgroundStrategy ()=default |
Private Attributes | |
boost::function< Mantid::Kernel::V3D(const Mantid::Geometry::IPeak *)> | m_coordFunction |
Pointer to member function used for coordinate determination. More... | |
Mantid::Kernel::SpecialCoordinateSystem | m_mdCoordinates |
MD coordinates to use. More... | |
Mantid::API::IPeaksWorkspace_const_sptr | m_peaksWS |
Peak workspace containing peaks of interest. More... | |
double | m_radiusEstimate |
Radius estimate. More... | |
PeakBackground : Extension of HardThresholdBackground to consider regions of the image as background if they are outside the peaks radius limits (no mater what their theshold is).
For pixels inside the radius, they must also be above the threshold value.
Definition at line 29 of file PeakBackground.h.
Mantid::Crystal::PeakBackground::PeakBackground | ( | Mantid::API::IPeaksWorkspace_const_sptr | peaksWS, |
const double & | radiusEstimate, | ||
const double & | thresholdSignal, | ||
const Mantid::API::MDNormalization | normalisation, | ||
const Mantid::Kernel::SpecialCoordinateSystem | coordinates | ||
) |
Constructor.
Definition at line 22 of file PeakBackground.cpp.
References Mantid::Geometry::IPeak::getHKL(), Mantid::Geometry::IPeak::getQLabFrame(), Mantid::Geometry::IPeak::getQSampleFrame(), Mantid::Kernel::HKL, m_coordFunction, and m_mdCoordinates.
|
overridevirtual |
Virutal constructor.
Reimplemented from Mantid::Crystal::HardThresholdBackground.
Definition at line 40 of file PeakBackground.cpp.
|
overridevirtual |
Overriden configure iterator function.
Reimplemented from Mantid::Crystal::HardThresholdBackground.
Definition at line 60 of file PeakBackground.cpp.
|
overridevirtual |
Overriden is background function.
Reimplemented from Mantid::Crystal::HardThresholdBackground.
Definition at line 42 of file PeakBackground.cpp.
References Mantid::Kernel::V3D::distance(), Mantid::API::IMDIterator::getCenter(), Mantid::Crystal::HardThresholdBackground::isBackground(), m_coordFunction, m_peaksWS, and m_radiusEstimate.
|
private |
Pointer to member function used for coordinate determination.
Definition at line 38 of file PeakBackground.h.
Referenced by isBackground(), and PeakBackground().
|
private |
MD coordinates to use.
Definition at line 36 of file PeakBackground.h.
Referenced by PeakBackground().
|
private |
Peak workspace containing peaks of interest.
Definition at line 32 of file PeakBackground.h.
Referenced by isBackground().
|
private |