Transform readers
From IGSTK
Contents |
Introduction
This application receives an xml file containing a precomputed transformation, reads it, presents the user with the general information about the transformation (when computed and estimation error). The user is then asked whether to use the transformation or not. If the answer is yes, the program prints the transformation and exits, otherwise it just exits. This behavior mimics loading of registration/calibration data in a real world application.
The directory contains all xml reader classes for rigid, perspective and affine transforms. Adding additional transformation types (i.e. non-rigid) requires (1) add the transform type to IGSTK as a subclass of igstk::TransformBase and (2) add a reader as a subclass of igstk::TransformXMLFileReaderBase and implement the virtual method ProcessTransformation() - extracts the transformation parameters from the internal string representation.
How to build the application
No special configuration is required to build this application.
How to run the application
Run TransformReaderExample in the binary directory
Usage: ./bin/TransformReaderExample transformation_type transformation_data_file_name Transformation types:
0 == rigid
1 == affine
2 == perspective
Example data
There are sample transform data in Testing/Data/TransformData directory
- precomputedAffineTransform.xml
- precomputedPerspectiveTransform.xml
- precomputedRigidTransform.xml
