Class to manage registration results.
- Note:
- Stores the rotation and in-plane translation needed to register a model with an EM image. The values can come from a coarse registration, or from a fine registration (optimized with simplex). I the second case, the function get_is_optimized_result() will return true Contains:
- Rotation in 3D of the model to register its projection with an image
- The rotation is understood as ZYZ
- shift shift to apply to the projection of the model (after rotation) to align it with the given image
Public Member Functions |
|
| RegistrationResult (double phi, double theta, double psi, algebra::Vector2D shift, int projection_index=0, int image_index=0, String name="") |
|
| RegistrationResult (algebra::Rotation3D R, algebra::Vector2D shift=algebra::Vector2D(0., 0.), int projection_index=0, int image_index=0, String name="") |
| void | add_in_plane_transformation (algebra::Transformation2D t) |
| double | get_ccc () const |
| int | get_image_index () const |
| | Image that has been registered.
|
|
bool | get_is_optimized_result () const |
| String | get_name () const |
| | Name of the object.
|
|
double | get_phi () const |
| int | get_projection_index () const |
| | Projection that best matches the image after coarse registration.
|
|
double | get_psi () const |
| algebra::Rotation3D | get_rotation () const |
| | Returns the rotation for the 3 projection angles.
|
| double | get_score () const |
|
algebra::Vector2D | get_shift () const |
|
algebra::Vector3D | get_shift_3d () const |
|
double | get_theta () const |
| void | read (const String &s) |
| | read
|
| void | read_from_image (const em::ImageHeader &header) |
| | Reads the registration parameters from an image.
|
|
void | set_ccc (double ccc) |
| void | set_image_index (int index) |
| | Index of the image that is registered.
|
| void | set_in_image (em::ImageHeader &header) const |
| | Sets the registration results to the header of an image.
|
|
void | set_name (String name) |
|
void | set_projection_index (int index) |
| void | set_random_registration (unsigned int index, double maximum_shift) |
| | Gets a random result.
|
| void | set_rotation (double phi, double theta, double psi) |
| | Rotation to apply to the model.
|
| void | set_rotation (algebra::Rotation3D R) |
| | Rotation to apply to the model.
|
|
void | set_score (double Score) |
| void | set_shift (algebra::Vector2D shift) |
| | Shift to apply to the projection to register.
|
|
void | show (std::ostream &out=std::cout) const |
| void | write (std::ostream &out=std::cout) const |
| | Writes a parseable result.
|
| void | write_comment_line (std::ostream &out=std::cout) const |
| | Writes an info line to with the contents of a result line.
|