3#include "../global.hpp"
98 const Type&
Value(
int sample,
int line,
int band)
const noexcept
100 return *
reinterpret_cast<Type *
>(basePtr_ + sample * sampleInc_ + line * lineInc_ + band * bandInc_);
114 template <
class Type>
115 Type&
Value(
int sample,
int line,
int band)
noexcept
117 return *
reinterpret_cast<Type*
>(basePtr_ + sample * sampleInc_ + line * lineInc_ + band * bandInc_);
123 LinearAccessData(uintptr_t basePtr, intptr_t sampleInc, intptr_t lineInc, intptr_t bandInc) noexcept
125 , sampleInc_(sampleInc)
Spectral Cube object.
Definition: cube.hpp:51
Linear access properties.
Definition: linear_access_data.hpp:21
std::intptr_t LineInc() const noexcept
Line-increment for linear access.
Definition: linear_access_data.hpp:70
LinearAccessData() noexcept=default
Create a default linear access data set.
Type & Value(int sample, int line, int band) noexcept
Gets a settable pixel value at a given position.
Definition: linear_access_data.hpp:115
std::uintptr_t BasePtr() const noexcept
Linear access base pointer.
Definition: linear_access_data.hpp:48
const Type & Value(int sample, int line, int band) const noexcept
Gets a pixel value at a given position.
Definition: linear_access_data.hpp:98
std::intptr_t BandInc() const noexcept
Band-increment for linear access.
Definition: linear_access_data.hpp:81
std::intptr_t SampleInc() const noexcept
Sample-increment for linear access.
Definition: linear_access_data.hpp:59
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24