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
33namespace pappso
34{
35
37{
38
39 public:
40 TraceDetectionZivy(unsigned int smoothing_half_window_length,
41 unsigned int minmax_half_window_length,
42 unsigned int maxmin_half_window_length,
43 pappso_double detection_threshold_on_minmax,
44 pappso_double detection_threshold_on_maxmin);
45 virtual ~TraceDetectionZivy();
46
47
48 void setFilterMorphoMean(const FilterMorphoMean &smooth);
49 void setFilterMorphoMinMax(const FilterMorphoMinMax &m_minMax);
50 void setFilterMorphoMaxMin(const FilterMorphoMaxMin &maxMin);
51 void setDetectionThresholdOnMinmax(double detectionThresholdOnMinMax);
52 void setDetectionThresholdOnMaxmin(double detectionThresholdOnMaxMin);
53
54 unsigned int getSmoothingHalfEdgeWindows() const;
55 unsigned int getMaxMinHalfEdgeWindows() const;
56
57 unsigned int getMinMaxHalfEdgeWindows() const;
58 pappso_double getDetectionThresholdOnMinmax() const;
59 pappso_double getDetectionThresholdOnMaxmin() const;
60
61 void detect(const Trace &xic,
63 bool remove_peak_base) const override;
64
65
66 private:
72};
73
74} // namespace pappso
transform the trace with the maximum of the minimum equivalent of the erode filter for pictures
Definition: filtermorpho.h:138
mean filter apply mean of y values inside the window : this results in a kind of smoothing
Definition: filtermorpho.h:210
transform the trace with the minimum of the maximum equivalent of the dilate filter for pictures
Definition: filtermorpho.h:118
pappso_double m_detectionThresholdOnMaxMin
pappso_double m_detectionThresholdOnMinMax
A simple container of DataPoint instances.
Definition: trace.h:38
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
double pappso_double
A type definition for doubles.
Definition: types.h:49