#include <OpenMS/FILTERING/BASELINE/TopHatFilter.h>
This filter can be used by supposing that the required lineaments are brighter than the environment. The main advantage of this filter is to be able to detect an over brightness even if the environment is not uniform. Moreover it is possible to regulate the size or the width of the over brightnesses very easily. The principle is based on the subtraction of an signal from its opening
. The opening consists of an erosion followed by a dilation, the size (the frameSize) of the structuring element (here a flat line) being conditioned by the width of the lineament to be detected.
Public Types | |
typedef MorphFilter | BaseClass |
Public Member Functions | |
TopHatFilter () | |
Constructor. | |
virtual | ~TopHatFilter () |
Destructor. | |
template<typename InputPeakIterator, typename OutputPeakContainer> | |
void | filter (InputPeakIterator first, InputPeakIterator last, OutputPeakContainer &baseline_filtered_container) |
Applies the baseline removal algorithm to an given iterator range. | |
template<typename InputPeakContainer, typename OutputPeakContainer> | |
void | filter (const InputPeakContainer &input_peak_container, OutputPeakContainer &baseline_filtered_container) |
Applies the baseline removal algorithm to to a raw data point container. | |
template<typename InputSpectrumIterator, typename OutputPeakType, typename OutputAllocType> | |
void | filterExperiment (InputSpectrumIterator first, InputSpectrumIterator last, MSExperiment< OutputPeakType, OutputAllocType > &ms_exp_filtered) |
Removes the baseline in a range of MSSpectra. | |
template<typename InputPeakType, typename InputAllocType, typename OutputPeakType, typename OutputAllocType> | |
void | filterExperiment (const MSExperiment< InputPeakType, InputAllocType > &ms_exp_raw, MSExperiment< OutputPeakType, OutputAllocType > &ms_exp_filtered) |
Removes the baseline in a MSExperiment. |
typedef MorphFilter BaseClass |
TopHatFilter | ( | ) | [inline] |
Constructor.
virtual ~TopHatFilter | ( | ) | [inline, virtual] |
Destructor.
void filter | ( | InputPeakIterator | first, | |
InputPeakIterator | last, | |||
OutputPeakContainer & | baseline_filtered_container | |||
) | [inline] |
Applies the baseline removal algorithm to an given iterator range.
Removes the baseline in the given iterator intervall [first,last) and writes the resulting data to the baseline_filtered_container.
The resulting peaks in the baseline_filtered_container (e.g. of type MSSpectrum<RawDataPoint1D >) can be of type RawDataPoint1D or any other class derived from DRawDataPoint.
void filter | ( | const InputPeakContainer & | input_peak_container, | |
OutputPeakContainer & | baseline_filtered_container | |||
) | [inline] |
Applies the baseline removal algorithm to to a raw data point container.
Removes the baseline in the the input container (e.g. of type MSSpectrum<RawDataPoint1D >) and writes the resulting data to the baseline_filtered_container.
The resulting peaks in the baseline_filtered_container (e.g. of type MSSpectrum<RawDataPoint1D >) can be of type RawDataPoint1D or any other class derived from DRawDataPoint.
void filterExperiment | ( | InputSpectrumIterator | first, | |
InputSpectrumIterator | last, | |||
MSExperiment< OutputPeakType, OutputAllocType > & | ms_exp_filtered | |||
) | [inline] |
Removes the baseline in a range of MSSpectra.
Filters the data successive in every scan in the intervall [first,last). The filtered data are stored in a MSExperiment.
You have to copy the ExperimentalSettings of the raw data by your own.
void filterExperiment | ( | const MSExperiment< InputPeakType, InputAllocType > & | ms_exp_raw, | |
MSExperiment< OutputPeakType, OutputAllocType > & | ms_exp_filtered | |||
) | [inline] |
Removes the baseline in a MSExperiment.
Filters the data every scan in the MSExperiment. The filtered data are stored in a MSExperiment.
Generated Tue Apr 1 15:36:44 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |