libpappsomspp
Library for mass spectrometry
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 117 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMinMax() [1/2]

FilterMorphoMinMax::FilterMorphoMinMax ( std::size_t  half_window_size)

Definition at line 208 of file filtermorpho.cpp.

209  : m_filterMax(half_window_size), m_filterMin(half_window_size)
210 {
211 }
FilterMorphoMax m_filterMax
Definition: filtermorpho.h:120
FilterMorphoMin m_filterMin
Definition: filtermorpho.h:121

◆ FilterMorphoMinMax() [2/2]

FilterMorphoMinMax::FilterMorphoMinMax ( const FilterMorphoMinMax other)

Definition at line 212 of file filtermorpho.cpp.

214 {
215 }

◆ ~FilterMorphoMinMax()

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

Definition at line 126 of file filtermorpho.h.

126 {};

Member Function Documentation

◆ filter()

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

Implements pappso::FilterInterface.

Definition at line 227 of file filtermorpho.cpp.

228 {
229  qDebug();
230  m_filterMax.filter(data_points);
231  m_filterMin.filter(data_points);
232  qDebug();
233  return data_points;
234 }
virtual Trace & filter(Trace &data_points) const override

References pappso::FilterMorphoWindowBase::filter(), m_filterMax, and m_filterMin.

Referenced by pappso::TraceDetectionZivy::detect(), and pappso::FilterMorphoBackground::filter().

◆ getMinMaxHalfEdgeWindows()

std::size_t FilterMorphoMinMax::getMinMaxHalfEdgeWindows ( ) const

Definition at line 236 of file filtermorpho.cpp.

237 {
238  return ((FilterMorphoMax)m_filterMax).getMaxHalfEdgeWindows();
239 }
transform the trace into its maximum over a window
Definition: filtermorpho.h:81

References m_filterMax.

Referenced by pappso::TraceDetectionZivy::detect(), and pappso::TraceDetectionZivy::getMinMaxHalfEdgeWindows().

◆ operator=()

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

Definition at line 218 of file filtermorpho.cpp.

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

References m_filterMax, and m_filterMin.

Member Data Documentation

◆ m_filterMax

FilterMorphoMax pappso::FilterMorphoMinMax::m_filterMax
private

Definition at line 120 of file filtermorpho.h.

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

◆ m_filterMin

FilterMorphoMin pappso::FilterMorphoMinMax::m_filterMin
private

Definition at line 121 of file filtermorpho.h.

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


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