libpappsomspp
Library for mass spectrometry
tracedetectionzivy.h
Go to the documentation of this file.
1 
2 /*******************************************************************************
3  * Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
4  *
5  * This file is part of the PAPPSOms++ library.
6  *
7  * PAPPSOms++ is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * PAPPSOms++ is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * Contributors:
21  * Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22  *implementation
23  ******************************************************************************/
24 
25 
26 #pragma once
27 
28 
30 #include "../../processing/filters/filtermorpho.h"
31 
32 
33 namespace pappso
34 {
35 
37 {
38  private:
44 
45  public:
46  TraceDetectionZivy(unsigned int smoothing_half_window_length,
47  unsigned int minmax_half_window_length,
48  unsigned int maxmin_half_window_length,
49  pappso_double detection_threshold_on_minmax,
50  pappso_double detection_threshold_on_maxmin);
51  virtual ~TraceDetectionZivy();
52 
53 
54  void setFilterMorphoMean(const FilterMorphoMean &smooth);
55  void setFilterMorphoMinMax(const FilterMorphoMinMax &m_minMax);
56  void setFilterMorphoMaxMin(const FilterMorphoMaxMin &maxMin);
57  void setDetectionThresholdOnMinmax(double detectionThresholdOnMinMax);
58  void setDetectionThresholdOnMaxmin(double detectionThresholdOnMaxMin);
59 
60  unsigned int getSmoothingHalfEdgeWindows() const;
61  unsigned int getMaxMinHalfEdgeWindows() const;
62 
63  unsigned int getMinMaxHalfEdgeWindows() const;
64  pappso_double getDetectionThresholdOnMinmax() const;
65  pappso_double getDetectionThresholdOnMaxmin() const;
66 
67  void detect(const Trace &xic,
68  TraceDetectionSinkInterface &sink) const override;
69 };
70 
71 } // namespace pappso
pappso::TraceDetectionInterface
Definition: tracedetectioninterface.h:44
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition: types.h:48
pappso::TraceDetectionZivy::m_maxMin
FilterMorphoMaxMin m_maxMin
Definition: tracedetectionzivy.h:41
pappso::TraceDetectionZivy::m_smooth
FilterMorphoMean m_smooth
Definition: tracedetectionzivy.h:39
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition: exportinmportconfig.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
pappso::TraceDetectionSinkInterface
Definition: tracedetectioninterface.h:38
pappso::TraceDetectionZivy::m_detectionThresholdOnMinMax
pappso_double m_detectionThresholdOnMinMax
Definition: tracedetectionzivy.h:42
tracedetectioninterface.h
pappso::TraceDetectionZivy::m_minMax
FilterMorphoMinMax m_minMax
Definition: tracedetectionzivy.h:40
pappso::Trace
A simple container of DataPoint instances.
Definition: trace.h:132
pappso::TraceDetectionZivy
Definition: tracedetectionzivy.h:37
pappso::TraceDetectionZivy::m_detectionThresholdOnMaxMin
pappso_double m_detectionThresholdOnMaxMin
Definition: tracedetectionzivy.h:43
pappso::FilterMorphoMean
mean filter apply mean of y values inside the window : this results in a kind of smoothing
Definition: filtermorpho.h:197
pappso::FilterMorphoMinMax
transform the trace with the minimum of the maximum equivalent of the dilate filter for pictures
Definition: filtermorpho.h:118
pappso::FilterMorphoMaxMin
transform the trace with the maximum of the minimum equivalent of the erode filter for pictures
Definition: filtermorpho.h:138