17#ifndef __file_nifti_utils_h__
18#define __file_nifti_utils_h__
24#include "file/nifti1.h"
42 template <
int VERSION> std::unique_ptr<ImageIO::Base>
read (
Header&
H);
45 template <
int VERSION> std::unique_ptr<ImageIO::Base>
create (
Header&
H);
std::unique_ptr< ImageIO::Base > read_gz(Header &H)
std::unique_ptr< ImageIO::Base > create(Header &H)
bool right_left_warning_issued
std::string get_json_path(const std::string &nifti_path)
std::unique_ptr< ImageIO::Base > create_gz(Header &H)
std::unique_ptr< ImageIO::Base > read(Header &H)
void axes_on_write(const Header &H, vector< size_t > &order, vector< bool > &flip)
bool check(int VERSION, Header &H, const size_t num_axes, const vector< std::string > &suffixes)
transform_type adjust_transform(const Header &H, vector< size_t > &order)
vector< size_t > order(const HeaderType &header, size_t from_axis=0, size_t to_axis=std::numeric_limits< size_t >::max())
sort range of axes with respect to their absolute stride.
Eigen::Transform< default_type, 3, Eigen::AffineCompact > transform_type
the type for the affine transform of an image: