96 const std::vector<double>&
getData()
const;
Dense W x H grid of ion intensities with a per-pixel mask.
Definition IonImage.h:31
bool hasPixel(UInt x, UInt y) const
True once setIntensity has been called for the cell at (x, y).
void setMzRange(const RangeMZ &range)
Records the m/z window the image was extracted from.
RangeMZ mz_range_
Definition IonImage.h:107
IonImage(UInt width, UInt height)
Constructs and zero-initializes a width x height image; all pixels invalid.
Size linearIndex_(UInt x, UInt y) const
std::vector< double > intensities_
Definition IonImage.h:105
const std::vector< double > & getData() const
Raw row-major intensity buffer.
UInt getWidth() const
Image width.
std::vector< bool > mask_
Definition IonImage.h:106
const std::vector< bool > & getMask() const
Parallel pixel mask (same indexing as getData()).
double getIntensity(UInt x, UInt y) const
Intensity at (x, y); 0.0 if never set.
UInt getHeight() const
Image height.
const RangeMZ & getMzRange() const
m/z window the image was extracted from.
void setIntensity(UInt x, UInt y, double intensity)
Stores intensity at (x, y) and marks the cell valid.
IonImage()=default
Default-construct an empty 0 x 0 image.
void resize(UInt width, UInt height)
Resizes and zero-initializes; all pixels become invalid.
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
Definition RangeManager.h:358