libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::FilterMorphoMinMax Class Reference

transform the trace with the minimum of the maximum equivalent of the dilate filter for pictures More...

#include <filtermorpho.h>

Inheritance diagram for pappso::FilterMorphoMinMax:
pappso::FilterInterface

Public Member Functions

 FilterMorphoMinMax (std::size_t half_window_size)
 FilterMorphoMinMax (const FilterMorphoMinMax &other)
virtual ~FilterMorphoMinMax ()
FilterMorphoMinMaxoperator= (const FilterMorphoMinMax &other)
Tracefilter (Trace &data_points) const override
std::size_t getMinMaxHalfEdgeWindows () const
Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()

Private Attributes

FilterMorphoMax m_filterMax
FilterMorphoMin m_filterMin

Detailed Description

transform the trace with the minimum of the maximum equivalent of the dilate filter for pictures

Definition at line 126 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMinMax() [1/2]

FilterMorphoMinMax::FilterMorphoMinMax ( std::size_t half_window_size)

Definition at line 207 of file filtermorpho.cpp.

208 : m_filterMax(half_window_size), m_filterMin(half_window_size)
209{
210}
FilterMorphoMax m_filterMax
FilterMorphoMin m_filterMin

References m_filterMax, and m_filterMin.

Referenced by FilterMorphoMinMax(), and operator=().

◆ FilterMorphoMinMax() [2/2]

FilterMorphoMinMax::FilterMorphoMinMax ( const FilterMorphoMinMax & other)

Definition at line 211 of file filtermorpho.cpp.

213{
214}

References FilterMorphoMinMax(), m_filterMax, and m_filterMin.

◆ ~FilterMorphoMinMax()

virtual pappso::FilterMorphoMinMax::~FilterMorphoMinMax ( )
inlinevirtual

Definition at line 132 of file filtermorpho.h.

132{};

Member Function Documentation

◆ filter()

Trace & FilterMorphoMinMax::filter ( Trace & data_points) const
overridevirtual

Implements pappso::FilterInterface.

Definition at line 226 of file filtermorpho.cpp.

227{
228 qDebug();
229 m_filterMax.filter(data_points);
230 m_filterMin.filter(data_points);
231 qDebug();
232 return data_points;
233}

References m_filterMax, and m_filterMin.

◆ getMinMaxHalfEdgeWindows()

std::size_t FilterMorphoMinMax::getMinMaxHalfEdgeWindows ( ) const

Definition at line 235 of file filtermorpho.cpp.

236{
237 return m_filterMax.getHalfWindowSize();
238}

References m_filterMax.

Referenced by pappso::FilterMorphoBackground::FilterMorphoBackground(), and pappso::FilterMorphoBackground::operator=().

◆ operator=()

FilterMorphoMinMax & FilterMorphoMinMax::operator= ( const FilterMorphoMinMax & other)

Definition at line 217 of file filtermorpho.cpp.

218{
219 m_filterMax = other.m_filterMax;
220 m_filterMin = other.m_filterMin;
221
222 return *this;
223}

References FilterMorphoMinMax(), m_filterMax, and m_filterMin.

Member Data Documentation

◆ m_filterMax

FilterMorphoMax pappso::FilterMorphoMinMax::m_filterMax
private

◆ m_filterMin

FilterMorphoMin pappso::FilterMorphoMinMax::m_filterMin
private

Definition at line 141 of file filtermorpho.h.

Referenced by FilterMorphoMinMax(), FilterMorphoMinMax(), filter(), and operator=().


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