~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to source/EXAMPLES/Tutorial_MorphologicalFilter.C

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2012-11-12 15:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20121112155812-vr15wtg9b50cuesg
Tags: upstream-1.9.0
ImportĀ upstreamĀ versionĀ 1.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <OpenMS/FILTERING/BASELINE/MorphologicalFilter.h>
 
2
#include <OpenMS/FORMAT/MzMLFile.h>
 
3
#include <OpenMS/KERNEL/StandardTypes.h>
 
4
#include <iostream>
 
5
 
 
6
using namespace OpenMS;
 
7
using namespace std;
 
8
 
 
9
Int main()
 
10
{
 
11
  PeakMap exp;
 
12
  
 
13
  MzMLFile mzml_file;
 
14
  mzml_file.load("data/Tutorial_MorphologicalFilter.mzML", exp);
 
15
 
 
16
  Param parameters;
 
17
  parameters.setValue("struc_elem_length", 1.0);
 
18
  parameters.setValue("struc_elem_unit", "Thomson");
 
19
  parameters.setValue("method", "tophat");
 
20
 
 
21
  MorphologicalFilter mf;
 
22
  mf.setParameters(parameters);
 
23
 
 
24
  mf.filterExperiment(exp);
 
25
 
 
26
  return 0;
 
27
} //end of main