Developer documentation
Version 3.0.3-105-gd3941f44
MR::File::JSON Namespace Reference

Functions

void load (Header &H, const std::string &path)
 
void save (const Header &H, const std::string &json_path, const std::string &image_path)
 
KeyValues read (const nlohmann::json &json, const KeyValues &preexisting=KeyValues())
 
void read (const nlohmann::json &json, Header &header, const bool realign)
 
void write (const KeyValues &keyval, nlohmann::json &json)
 
void write (const Header &header, nlohmann::json &json, const std::string &image_path)
 

Function Documentation

◆ load()

void MR::File::JSON::load ( Header H,
const std::string &  path 
)

◆ read() [1/2]

KeyValues MR::File::JSON::read ( const nlohmann::json &  json,
const KeyValues preexisting = KeyValues() 
)

◆ read() [2/2]

void MR::File::JSON::read ( const nlohmann::json &  json,
Header header,
const bool  realign 
)

◆ save()

void MR::File::JSON::save ( const Header H,
const std::string &  json_path,
const std::string &  image_path 
)

◆ write() [1/2]

void MR::File::JSON::write ( const Header header,
nlohmann::json &  json,
const std::string &  image_path 
)

◆ write() [2/2]

void MR::File::JSON::write ( const KeyValues keyval,
nlohmann::json &  json 
)