3#include "../global.hpp"
96 const Type &
Value(
int sample,
int line,
int band)
const noexcept
98 return *
reinterpret_cast<Type *
>(basePtr_ + sample * sampleInc_ + line * lineInc_ + band * bandInc_);
96 const Type &
Value(
int sample,
int line,
int band)
const noexcept {
…}
112 template <
class Type>
113 Type &
Value(
int sample,
int line,
int band)
noexcept
115 return *
reinterpret_cast<Type *
>(basePtr_ + sample * sampleInc_ + line * lineInc_ + band * bandInc_);
113 Type &
Value(
int sample,
int line,
int band)
noexcept {
…}
119 LinearAccessData(uintptr_t basePtr, intptr_t sampleInc, intptr_t lineInc, intptr_t bandInc) noexcept
121 , sampleInc_(sampleInc)
Spectral Cube object.
Definition cube.hpp:59
std::intptr_t LineInc() const noexcept
Line-increment for linear access.
Definition linear_access_data.hpp:68
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:113
std::uintptr_t BasePtr() const noexcept
Linear access base pointer.
Definition linear_access_data.hpp:46
const Type & Value(int sample, int line, int band) const noexcept
Gets a pixel value at a given position.
Definition linear_access_data.hpp:96
std::intptr_t BandInc() const noexcept
Band-increment for linear access.
Definition linear_access_data.hpp:79
std::intptr_t SampleInc() const noexcept
Sample-increment for linear access.
Definition linear_access_data.hpp:57
Namespace for the Spectral package.
Definition arithmetic.hpp:14
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17