201 const std::vector<MSImagingGeometry::Pixel>& pixels,
202 const std::vector<Size>& pixel_indices)
const;
Dense W x H grid of ion intensities with a per-pixel mask.
Definition IonImage.h:31
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
In-memory model for a 2D imaging mass spectrometry dataset.
Definition MSImagingExperiment.h:30
Size getNumberOfPixels() const
Number of pixels in the geometry.
MSExperiment experiment_
Definition MSImagingExperiment.h:188
MSImagingGeometry geometry_
Definition MSImagingExperiment.h:189
MSExperiment & getMSExperiment()
Mutable access to the owned MSExperiment.
bool hasPixel(UInt x, UInt y) const
Tests pixel presence at (x, y).
void setGeometry(MSImagingGeometry geom)
Replaces the owned geometry.
const MSSpectrum & getSpectrum(UInt x, UInt y) const
Read access to the spectrum bound to the pixel at (x, y).
MSImagingExperiment()=default
MSImagingExperiment(MSExperiment exp)
Constructs an MSImagingExperiment wrapping exp with an empty geometry.
MSImagingGeometry & getGeometry()
Mutable access to the owned geometry.
void extractIntoImage_(IonImage &image, double mz_lo, double mz_hi, const std::vector< MSImagingGeometry::Pixel > &pixels, const std::vector< Size > &pixel_indices) const
extracts the sum of intensities in [mz_lo:mz_hi] into image on a pixel level, indices control which p...
MSSpectrum & getSpectrum(UInt x, UInt y)
Mutable access to the spectrum bound to the pixel at (x, y).
IonImage extractIonImage(double mz, double tolerance_ppm, Size region_id) const
Extracts an ion image by summing peak intensities inside [mz - dm, mz + dm], with dm = mz * tolerance...
Size getNumberOfSpectra() const
Number of spectra in the underlying experiment.
IonImage extractIonImage(double mz, double tolerance_ppm) const
Extracts an ion image by summing peak intensities inside [mz - dm, mz + dm], with dm = mz * tolerance...
const MSImagingGeometry & getGeometry() const
Read access to the owned geometry.
MSImagingExperiment & operator=(MSExperiment exp)
Replaces the owned MSExperiment and resets the geometry.
void setMSExperiment(MSExperiment exp)
Replaces the owned MSExperiment.
void validate() const
Validates that every pixel references an in-range spectrum_index.
std::vector< Size > getRegionSpectrumIndices(Size region_id) const
Spectrum indices of the acquired pixels belonging to a region.
const MSExperiment & getMSExperiment() const
Read access to the owned MSExperiment.
Pixel grid metadata and (x, y) -> spectrum_index lookup for MSI data.
Definition MSImagingGeometry.h:33
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19