11#include <OpenMS/OpenMSConfig.h>
24 class MSImagingGeometry;
96 void open(
const std::string& imzml_path,
const std::string& ibd_path =
"");
110 bool isOpen() const noexcept;
111 std::
size_t getNrSpectra() const noexcept;
112 std::
size_t size() const noexcept {
return getNrSpectra(); }
186 uint32_t gridWidth() const noexcept;
189 uint32_t gridHeight() const noexcept;
194 std::unique_ptr<Impl> pimpl_;
Pixel grid metadata and (x, y) -> spectrum_index lookup for MSI data.
Definition MSImagingGeometry.h:31
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Random-access, on-disc reader for imzML mass spectrometry imaging datasets.
Definition OnDiscImzMLExperiment.h:60
const ImzMLSpectrumIndex & getIndex(std::size_t i) const
Return the index entry for spectrum i.
void close() noexcept
Close the companion .ibd file and release on-disc resources.
OnDiscImzMLExperiment & operator=(const OnDiscImzMLExperiment &)=delete
OnDiscImzMLExperiment & operator=(OnDiscImzMLExperiment &&)
MSSpectrum getSpectrumAtCoord(uint32_t x, uint32_t y, uint32_t z=1) const
Return the spectrum at imzML pixel coordinate (x, y[, z]).
const ImzMLMeta & getImzMLMeta() const noexcept
Returns imaging metadata parsed during open() — no IBD reads.
OnDiscImzMLExperiment(OnDiscImzMLExperiment &&)
MSSpectrum getSpectrum(std::size_t i) const
Decode and return spectrum i from the .ibd file.
MSSpectrum operator[](std::size_t i) const
Sugar for getSpectrum(i).
Definition OnDiscImzMLExperiment.h:146
void open(const std::string &imzml_path, const std::string &ibd_path="")
Open an imzML dataset: parse the XML index, build the imaging geometry, and open the ....
OnDiscImzMLExperiment(const OnDiscImzMLExperiment &)=delete
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Per-spectrum binary index entry for an imzML dataset.
Definition ImzMLHandlerHelper.h:95