|
MVE - Multi-View Environment mve-devel
|
Reads samples from a PLY file. More...
#include <sample_io.h>
Classes | |
| struct | Options |
Public Member Functions | |
| SampleIO (Options const &opts) | |
| Default constructor setting options. | |
| bool | next_sample (Sample *sample) |
| Reads one sample, returns false if there are no more samples. | |
| void | open_file (std::string const &filename) |
| Opens the input file for stream reading. | |
| void | read_file (std::string const &filename, SampleList *samples) |
| Reads all input samples in memory. | |
Reads samples from a PLY file.
Two input types are supported: Reading the whole file at once using the MVE PLY file reader, and a streaming reader which reads one sample at at time.
Definition at line 27 of file sample_io.h.
|
inline |
Default constructor setting options.
Definition at line 99 of file sample_io.h.
| bool fssr::SampleIO::next_sample | ( | Sample * | sample | ) |
Reads one sample, returns false if there are no more samples.
Definition at line 248 of file sample_io.cc.
| void fssr::SampleIO::open_file | ( | std::string const & | filename | ) |
Opens the input file for stream reading.
Definition at line 72 of file sample_io.cc.
| void fssr::SampleIO::read_file | ( | std::string const & | filename, |
| SampleList * | samples | ||
| ) |
Reads all input samples in memory.
Definition at line 22 of file sample_io.cc.