Template Class cube

Class Documentation

template<typename _pixel_type>
class cube

Public Types

template<>
using pixel_type = _pixel_type

Public Functions

cube()

—————————————————————————– /// Constructor —————————————————————————– ///

cube(const size_t size_x, const size_t size_y, const size_t size_k, pixel_type *const image_data, std::vector<double> timestamp_list)
~cube()
cube(const cube&)
cube(cube&&)
cube &operator=(const cube&)
cube &operator=(cube&&)
size_t frame_size() const

Return frame size.

————————————————————————– /// Public methods ————————————————————————– ///

size_t cube_size() const

Return cube size.

bool out_of_range(const ssize_t x, const ssize_t y, const ssize_t k) const

Returns TRUE if the given x-y-k coordinate points at out-of-range.

pixel_type get_pixel_value(const ssize_t x, const ssize_t y, const ssize_t k) const

Returns a pixel value of the given x-y-k coordinate A returned value can be NaN value.

std::tuple<size_t, size_t, size_t> size() const

Returns the size of cube (x, y, k) in tuple.

const pixel_type *image_data() const
double timestamp(const size_t k) const