Namespace of pgm input/output handling. More...
Namespaces | |
| namespace | internal |
Classes | |
| struct | data_type |
| struct | field_type |
| struct | fld_header |
| Define the header structure of an AVS field data file. More... | |
Functions | |
| template<typename I > | |
| void | load (Image< I > &ima_, const char *filename) |
| Load an image from an AVS field file. | |
| template<unsigned n, typename V > | |
| unsigned | max_component (const algebra::vec< n, V > &v) |
| template<unsigned n> | |
| unsigned | max_component (const value::rgb< n > &) |
| unsigned | max_component (const fld::data_type::E &t) |
| template<typename V > | |
| unsigned | max_component (const V &) |
| fld_header | read_header (std::istream &ins) |
| Read the header form an AVS field file. | |
| template<typename I > | |
| void | save (const Image< I > &ima_, const char *filename) |
| void | write_header (std::ostream &file, const fld_header &h) |
| Write the AVS header in a file. | |
Namespace of pgm input/output handling.
| void mln::io::fld::load | ( | Image< I > & | ima_, | |
| const char * | filename | |||
| ) | [inline] |
Load an image from an AVS field file.
| [in,out] | ima_ | The image to load. |
| [in] | filename | The path to the AVS file. |
Definition at line 198 of file fld/load.hh.
References mln::io::fld::internal::abort_load(), mln::io::fld::fld_header::data, mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::convert::from_to(), mln::io::fld::internal::load_raw(), max_component(), mln::io::fld::fld_header::max_ext, mln::io::fld::fld_header::min_ext, mln::io::fld::fld_header::ndim, mln::io::fld::fld_header::nspace, mln::box< P >::pmax(), mln::box< P >::pmin(), read_header(), and mln::io::fld::fld_header::veclen.
| unsigned mln::io::fld::max_component | ( | const algebra::vec< n, V > & | v | ) | [inline] |
Definition at line 75 of file max_components.hh.
| unsigned mln::io::fld::max_component | ( | const value::rgb< n > & | ) | [inline] |
Definition at line 82 of file max_components.hh.
| unsigned mln::io::fld::max_component | ( | const fld::data_type::E & | t | ) | [inline] |
Definition at line 88 of file max_components.hh.
References mln::io::fld::data_type::BYTE, mln::io::fld::data_type::DOUBLE, mln::io::fld::data_type::FLOAT, mln::io::fld::data_type::INTEGER, and mln::io::fld::data_type::SHORT.
| unsigned mln::io::fld::max_component | ( | const V & | ) | [inline] |
Definition at line 67 of file max_components.hh.
Referenced by load(), and mln::io::fld::internal::make_header().
| fld_header mln::io::fld::read_header | ( | std::istream & | ins | ) | [inline] |
Read the header form an AVS field file.
| ins | The file to read. |
Definition at line 73 of file fld/load_header.hh.
References mln::io::fld::internal::abort_fld_reader(), mln::io::fld::fld_header::data, mln::io::fld::fld_header::dim, mln::io::fld::fld_header::field, mln::io::fld::fld_header::max_ext, mln::io::fld::fld_header::min_ext, mln::io::fld::fld_header::ndim, mln::io::fld::fld_header::nspace, mln::rhs, mln::io::fld::field_type::UNKNOWN, mln::io::fld::data_type::UNKNOWN, and mln::io::fld::fld_header::veclen.
Referenced by load().
| void mln::io::fld::save | ( | const Image< I > & | ima_, | |
| const char * | filename | |||
| ) |
Definition at line 148 of file fld/save.hh.
References mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::io::fld::internal::make_header(), mln::io::fld::internal::save_data_contiguous(), and write_header().
| void mln::io::fld::write_header | ( | std::ostream & | file, | |
| const fld_header & | h | |||
| ) | [inline] |
Write the AVS header in a file.
| file | The file to write. | |
| h | The AVS header. |
Definition at line 58 of file write_header.hh.
References mln::io::fld::data_type::BYTE, mln::io::fld::fld_header::data, mln::io::fld::fld_header::dim, mln::io::fld::data_type::DOUBLE, mln::io::fld::fld_header::field, mln::io::fld::data_type::FLOAT, mln::io::fld::data_type::INTEGER, mln::io::fld::field_type::IRREGULAR, mln::io::fld::fld_header::max_ext, mln::io::fld::fld_header::min_ext, mln::io::fld::fld_header::ndim, mln::io::fld::fld_header::nspace, mln::io::fld::field_type::RECTILINEAR, mln::io::fld::data_type::SHORT, mln::io::fld::field_type::UNIFORM, and mln::io::fld::fld_header::veclen.
Referenced by save().
1.7.1