20 #ifndef MIRTK_RegistrationFilter_H 21 #define MIRTK_RegistrationFilter_H 23 #include "mirtk/Observable.h" 75 virtual bool Read(
const char *,
bool =
false);
78 virtual bool Read(istream &,
bool =
false) = 0;
81 virtual void Write(
const char *)
const = 0;
84 virtual void Run() = 0;
116 ifstream from(fname);
117 if (!from)
return false;
118 bool ok = this->
Read(from, echo);
142 return _Output ? *_Output : NULL;
148 #endif // MIRTK_RegistrationFilter_H virtual ~RegistrationFilter()=0
Destructor.
virtual void Write(const char *) const =0
Write registration parameters to file.
virtual bool Read(const char *, bool=false)
Read registration parameters from input stream.
Transformation * Output()
Get output transformation.
virtual void Run()=0
Runs the registration filter.
RegistrationFilter()
Constructor.