Reader class for smartly detecting various transformation classes. More...
#include <rgrl_trans_reader.h>
Static Public Member Functions | |
static rgrl_transformation_sptr | read (vcl_istream &is) |
Read a transformation from input stream. | |
static rgrl_transformation_sptr | read (char const *fn) |
Read a transformation from input file for convenience. | |
static void | add_xform (rgrl_transformation_sptr) |
add a transformation candidate. | |
Static Protected Attributes | |
static vcl_vector < rgrl_transformation_sptr > | xform_candidates_ |
Reader class for smartly detecting various transformation classes.
Users can also add user-defined classes, which takes priority before others
Definition at line 21 of file rgrl_trans_reader.h.
void rgrl_trans_reader::add_xform | ( | rgrl_transformation_sptr | xform | ) | [static] |
add a transformation candidate.
Definition at line 116 of file rgrl_trans_reader.cxx.
rgrl_transformation_sptr rgrl_trans_reader::read | ( | vcl_istream & | is | ) | [static] |
Read a transformation from input stream.
IMPORTANCE:
The type of transformation depends on the content of the input stream. NULL smart ptr is returned if reading operation fails. Please check the validity of the returned smart ptr.
The type of transformation depends on the content of the input stream. NULL smart ptr is returned if reading fails. Please check the validity of the return smart ptr
Definition at line 54 of file rgrl_trans_reader.cxx.
rgrl_transformation_sptr rgrl_trans_reader::read | ( | char const * | fn | ) | [static] |
Read a transformation from input file for convenience.
Definition at line 29 of file rgrl_trans_reader.cxx.
vcl_vector< rgrl_transformation_sptr > rgrl_trans_reader::xform_candidates_ [static, protected] |
Definition at line 45 of file rgrl_trans_reader.h.