pappsomspp
Library for mass spectrometry
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 ()
 
Tracefilter (Trace &data_points) const override
 
std::size_t getMaxMinHalfEdgeWindows () const
 

Private Attributes

FilterMorphoMin m_filter_min
 
FilterMorphoMax m_filter_max
 

Detailed Description

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

Definition at line 141 of file filtermorpho.h.

Constructor & Destructor Documentation

◆ FilterMorphoMaxMin() [1/2]

FilterMorphoMaxMin::FilterMorphoMaxMin ( std::size_t  half_window_size)

Definition at line 193 of file filtermorpho.cpp.

195  : m_filter_min(half_window_size), m_filter_max(half_window_size)
196 {

◆ FilterMorphoMaxMin() [2/2]

FilterMorphoMaxMin::FilterMorphoMaxMin ( const FilterMorphoMaxMin other)

Definition at line 197 of file filtermorpho.cpp.

200 {

◆ ~FilterMorphoMaxMin()

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

Definition at line 150 of file filtermorpho.h.

151 {};

Member Function Documentation

◆ filter()

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

Implements pappso::FilterInterface.

Definition at line 202 of file filtermorpho.cpp.

204 {
205  qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__;
206  m_filter_min.filter(data_points);
207  m_filter_max.filter(data_points);
208  qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__;
209  return data_points;

References pappso::FilterMorphoWindowBase::filter(), m_filter_max, and m_filter_min.

Referenced by pappso::TraceDetectionZivy::detect().

◆ getMaxMinHalfEdgeWindows()

std::size_t FilterMorphoMaxMin::getMaxMinHalfEdgeWindows ( ) const

Definition at line 211 of file filtermorpho.cpp.

213 {
214  return ((FilterMorphoMax)m_filter_max).getMaxHalfEdgeWindows();

References m_filter_max.

Member Data Documentation

◆ m_filter_max

FilterMorphoMax pappso::FilterMorphoMaxMin::m_filter_max
private

Definition at line 145 of file filtermorpho.h.

Referenced by filter(), and getMaxMinHalfEdgeWindows().

◆ m_filter_min

FilterMorphoMin pappso::FilterMorphoMaxMin::m_filter_min
private

Definition at line 144 of file filtermorpho.h.

Referenced by filter().


The documentation for this class was generated from the following files:
pappso::FilterMorphoWindowBase::filter
virtual Trace & filter(Trace &data_points) const override
Definition: filtermorpho.cpp:49
pappso::FilterMorphoMax
transform the trace into its maximum over a window
Definition: filtermorpho.h:90
pappso::FilterMorphoMaxMin::m_filter_min
FilterMorphoMin m_filter_min
Definition: filtermorpho.h:144
pappso::FilterMorphoMaxMin::m_filter_max
FilterMorphoMax m_filter_max
Definition: filtermorpho.h:145