#include "formats/list.h"
Public Member Functions | |
MRtrix () | |
virtual std::unique_ptr< ImageIO::Base > | read (Header &H) const |
read image file(s) and fill the Image::Header H with the appropriate information. More... | |
virtual bool | check (Header &H, size_t num_axes) const |
check whether the Image::Header H can be created using this handler. More... | |
virtual std::unique_ptr< ImageIO::Base > | create (Header &H) const |
create the image corresponding to the Image::Header H . More... | |
Public Member Functions inherited from MR::Formats::Base | |
Base (const char *desc) | |
virtual | ~Base () |
virtual std::unique_ptr< ImageIO::Base > | read (Header &H) const =0 |
read image file(s) and fill the Image::Header H with the appropriate information. More... | |
virtual bool | check (Header &H, size_t num_axes) const =0 |
check whether the Image::Header H can be created using this handler. More... | |
virtual std::unique_ptr< ImageIO::Base > | create (Header &H) const =0 |
create the image corresponding to the Image::Header H . More... | |
Additional Inherited Members | |
Public Attributes inherited from MR::Formats::Base | |
const char * | description |
a short human-readable description of the image format More... | |
|
virtual |
check whether the Image::Header H
can be created using this handler.
This function will check whether this handler can write images in the format suggested by the filename. It will then check whether the format can handle the number of dimensions requested, and modify the header appropriately if needed.
Implements MR::Formats::Base.
|
virtual |
create the image corresponding to the Image::Header H
.
This function will create images in the corresponding format, assuming the header has been validated using the check() function beforehand.
Implements MR::Formats::Base.
|
virtual |
read image file(s) and fill the Image::Header H
with the appropriate information.
This function will check whether this handler can read images in the format suggested by the filename. It will then attempt to read the corresponding image, and update the Image::Header H
with the relevant information.
H
with all the relevant information as read from the images before returning. Implements MR::Formats::Base.