Namespace of plot input/output handling.
More...
Functions |
template<typename I > |
void | load (util::array< I > &arr, const std::string &filename) |
template<typename T > |
void | save (const histo::array< T > &arr, const std::string &filename) |
template<typename T > |
void | save (util::array< T > &arr, const std::string &filename, int start_value) |
| Save a Milena array in a plot file.
|
template<typename I > |
void | save (const image1d< I > &ima, const std::string &filename) |
| Save a Milena 1D image in a plot file.
|
Detailed Description
Namespace of plot input/output handling.
Function Documentation
template<typename I >
void mln::io::plot::load |
( |
util::array< I > & |
arr, |
|
|
const std::string & |
filename | |
|
) |
| | [inline] |
Load a Milena 1D image from a plot file.
- Parameters:
-
[in] | ima | A reference to the image to load. |
[out] | filename | The output file. |
[in] | start_value | The start index value of the plot (optional). |
Load a Milena array from a plot file.
- Parameters:
-
[in] | arr | A reference to the array to load. |
[out] | filename | The output file. |
References mln::util::array< T >::append(), and mln::util::array< T >::clear().
template<typename T >
void mln::io::plot::save |
( |
const histo::array< T > & |
arr, |
|
|
const std::string & |
filename | |
|
) |
| | [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T >
void mln::io::plot::save |
( |
util::array< T > & |
arr, |
|
|
const std::string & |
filename, |
|
|
int |
start_value | |
|
) |
| | |
Save a Milena array in a plot file.
- Parameters:
-
[in] | arr | A reference to the array to save. |
[out] | filename | The output file. |
[in] | start_value | The start index value of the plot (optional). |
template<typename I >
void mln::io::plot::save |
( |
const image1d< I > & |
ima, |
|
|
const std::string & |
filename | |
|
) |
| | |
Save a Milena 1D image in a plot file.
- Parameters:
-
[in] | ima | A reference to the image to save. |
[out] | filename | The output file. |