#include "image.h"
Public Member Functions | |
void * | operator new (std::size_t size) |
void * | operator new[] (std::size_t size) |
void | operator delete (void *ptr) |
void | operator delete[] (void *ptr) |
Buffer () | |
Buffer (Header &H, bool read_write_if_existing=false) | |
construct a Buffer object to access the data in the image specified More... | |
Buffer (Buffer &&)=default | |
Buffer & | operator= (const Buffer &)=delete |
Buffer & | operator= (Buffer &&)=default |
Buffer (const Buffer &b) | |
ValueType | get_value (size_t offset) const |
void | set_value (size_t offset, ValueType val) const |
void * | get_data_pointer () |
ImageIO::Base * | get_io () const |
Public Attributes | |
std::unique_ptr< uint8_t[]> | data_buffer |
Protected Member Functions | |
void | set_fetch_store_functions () |
Protected Member Functions inherited from MR::Header | |
void | acquire_io (Header &H) |
void | check (const Header &H) const |
void | realign_transform () |
realign transform to match RAS coordinate system as closely as possible More... | |
void | sanitise_voxel_sizes () |
void | sanitise_transform () |
void | sanitise_strides () |
Protected Attributes | |
std::function< ValueType(const void *, size_t, default_type, default_type)> | fetch_func |
std::function< void(ValueType, void *, size_t, default_type, default_type)> | store_func |
Protected Attributes inherited from MR::Header | |
vector< Axis > | axes_ |
transform_type | transform_ |
std::string | name_ |
KeyValues | keyval_ |
const char * | format_ |
std::unique_ptr< ImageIO::Base > | io |
additional information relevant for images stored on file More... | |
DataType | datatype_ |
the type of the data as stored on file More... | |
default_type | offset_ |
the values by which to scale the intensities More... | |
default_type | scale_ |
std::array< size_t, 3 > | realign_perm_ |
std::array< bool, 3 > | realign_flip_ |
|
inline |
MR::Image< ValueType >::Buffer::Buffer | ( | Header & | H, |
bool | read_write_if_existing = false |
||
) |
construct a Buffer object to access the data in the image specified
void * MR::Image< ValueType >::Buffer::get_data_pointer | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
delete |
|
inlineprotected |
|
inline |
std::unique_ptr<uint8_t[]> MR::Image< ValueType >::Buffer::data_buffer |
|
protected |
|
protected |