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

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

#include <filtermorpho.h>

Inheritance diagram for pappso::FilterMorphoMaxMin:
pappso::FilterInterface

Public Member Functions

 FilterMorphoMaxMin (std::size_t half_window_size)
 
 FilterMorphoMaxMin (const FilterMorphoMaxMin &other)
 
virtual ~FilterMorphoMaxMin ()
 
FilterMorphoMaxMinoperator= (const FilterMorphoMaxMin &other)
 
Tracefilter (Trace &data_points) const override
 
std::size_t getMaxMinHalfEdgeWindows () const
 
- Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()
 

Private Attributes

FilterMorphoMin m_filterMin
 
FilterMorphoMax m_filterMax
 

Detailed Description

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

Definition at line 147 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMaxMin() [1/2]

FilterMorphoMaxMin::FilterMorphoMaxMin ( std::size_t half_window_size)

Definition at line 240 of file filtermorpho.cpp.

241 : m_filterMin(half_window_size), m_filterMax(half_window_size)
242{
243}
FilterMorphoMax m_filterMax
FilterMorphoMin m_filterMin

References m_filterMax, and m_filterMin.

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

◆ FilterMorphoMaxMin() [2/2]

FilterMorphoMaxMin::FilterMorphoMaxMin ( const FilterMorphoMaxMin & other)

Definition at line 244 of file filtermorpho.cpp.

246{
247}

References FilterMorphoMaxMin(), m_filterMax, and m_filterMin.

◆ ~FilterMorphoMaxMin()

virtual pappso::FilterMorphoMaxMin::~FilterMorphoMaxMin ( )
inlinevirtual

Definition at line 153 of file filtermorpho.h.

153{};

Member Function Documentation

◆ filter()

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

Implements pappso::FilterInterface.

Definition at line 259 of file filtermorpho.cpp.

260{
261 qDebug();
262 m_filterMin.filter(data_points);
263 m_filterMax.filter(data_points);
264 qDebug();
265 return data_points;
266}

References m_filterMax, and m_filterMin.

◆ getMaxMinHalfEdgeWindows()

std::size_t FilterMorphoMaxMin::getMaxMinHalfEdgeWindows ( ) const

Definition at line 268 of file filtermorpho.cpp.

269{
270 return m_filterMin.getHalfWindowSize();
271}

References m_filterMin.

◆ operator=()

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

Definition at line 250 of file filtermorpho.cpp.

251{
252 m_filterMin = other.m_filterMin;
253 m_filterMax = other.m_filterMax;
254
255 return *this;
256}

References FilterMorphoMaxMin(), m_filterMax, and m_filterMin.

Member Data Documentation

◆ m_filterMax

FilterMorphoMax pappso::FilterMorphoMaxMin::m_filterMax
private

Definition at line 162 of file filtermorpho.h.

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

◆ m_filterMin

FilterMorphoMin pappso::FilterMorphoMaxMin::m_filterMin
private

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