Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::Crystal::PeakBackground Class Reference

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>

Inheritance diagram for Mantid::Crystal::PeakBackground:
Mantid::Crystal::HardThresholdBackground Mantid::Crystal::BackgroundStrategy

Public Member Functions

PeakBackgroundclone () 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
HardThresholdBackgroundclone () 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 BackgroundStrategyclone () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PeakBackground()

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 
)

Member Function Documentation

◆ clone()

PeakBackground * Mantid::Crystal::PeakBackground::clone ( ) const
overridevirtual

Virutal constructor.

Reimplemented from Mantid::Crystal::HardThresholdBackground.

Definition at line 40 of file PeakBackground.cpp.

◆ configureIterator()

void Mantid::Crystal::PeakBackground::configureIterator ( Mantid::API::IMDIterator *const  iterator) const
overridevirtual

Overriden configure iterator function.

Reimplemented from Mantid::Crystal::HardThresholdBackground.

Definition at line 60 of file PeakBackground.cpp.

◆ isBackground()

bool Mantid::Crystal::PeakBackground::isBackground ( Mantid::API::IMDIterator iterator) const
overridevirtual

Member Data Documentation

◆ m_coordFunction

boost::function<Mantid::Kernel::V3D(const Mantid::Geometry::IPeak *)> Mantid::Crystal::PeakBackground::m_coordFunction
private

Pointer to member function used for coordinate determination.

Definition at line 38 of file PeakBackground.h.

Referenced by isBackground(), and PeakBackground().

◆ m_mdCoordinates

Mantid::Kernel::SpecialCoordinateSystem Mantid::Crystal::PeakBackground::m_mdCoordinates
private

MD coordinates to use.

Definition at line 36 of file PeakBackground.h.

Referenced by PeakBackground().

◆ m_peaksWS

Mantid::API::IPeaksWorkspace_const_sptr Mantid::Crystal::PeakBackground::m_peaksWS
private

Peak workspace containing peaks of interest.

Definition at line 32 of file PeakBackground.h.

Referenced by isBackground().

◆ m_radiusEstimate

double Mantid::Crystal::PeakBackground::m_radiusEstimate
private

Radius estimate.

Definition at line 34 of file PeakBackground.h.

Referenced by isBackground().


The documentation for this class was generated from the following files: