#include <aligner.h>
Inheritance diagram for EMAN::RotateTranslateScaleAligner:
Public Member Functions | |
RotateTranslateScaleAligner () | |
virtual EMData * | align (EMData *this_img, EMData *to_img, const string &cmp_name="dot", const Dict &cmp_params=Dict()) const |
To align 'this_img' with another image passed in through its parameters. | |
virtual EMData * | align (EMData *this_img, EMData *to_img) const |
virtual string | get_name () const |
Get the Aligner's name. | |
virtual string | get_desc () const |
virtual TypeDict | get_param_types () const |
Static Public Member Functions | |
static Aligner * | NEW () |
Static Public Attributes | |
static const string | NAME = "rotate_translate_scale" |
min | Minimum scaling (default: 0.95) | |
max | aximum scaling (default: 1.05) | |
step | Scaling step (default: 0.01) | |
maxshift | Maximum translation in pixels | |
nozero | Zero translation not permitted (useful for CCD images) | |
rfp_mode | Either 0,1 or 2. A temporary flag for testing the rotational foot print |
Definition at line 460 of file aligner.h.
EMAN::RotateTranslateScaleAligner::RotateTranslateScaleAligner | ( | ) | [inline] |
Definition at line 465 of file aligner.h.
Referenced by NEW().
00465 : ScaleAlignerABS("rotate_translate") 00466 { 00467 }
virtual EMData* EMAN::RotateTranslateScaleAligner::align | ( | EMData * | this_img, | |
EMData * | to_img | |||
) | const [inline, virtual] |
Implements EMAN::Aligner.
Definition at line 472 of file aligner.h.
References align().
00473 { 00474 return align(this_img, to_img, "sqeuclidean", Dict()); 00475 }
EMData * RotateTranslateScaleAligner::align | ( | EMData * | this_img, | |
EMData * | to_img, | |||
const string & | cmp_name = "dot" , |
|||
const Dict & | cmp_params = Dict() | |||
) | const [virtual] |
To align 'this_img' with another image passed in through its parameters.
The alignment uses a user-given comparison method to compare the two images. If none is given, a default one is used.
this_img | The image to be compared. | |
to_img | 'this_img" is aligned with 'to_img'. | |
cmp_name | The comparison method to compare the two images. | |
cmp_params | The parameter dictionary for comparison method. |
Implements EMAN::Aligner.
Definition at line 760 of file aligner.cpp.
References EMAN::ScaleAlignerABS::align_using_base(), EMAN::ScaleAlignerABS::basealigner_params, EMAN::Aligner::params, and EMAN::Dict::set_default().
Referenced by align().
00762 { 00763 00764 //Basically copy params into rotate_translate 00765 basealigner_params["maxshift"] = params.set_default("maxshift", -1); 00766 basealigner_params["rfp_mode"] = params.set_default("rfp_mode",0); 00767 basealigner_params["useflcf"] = params.set_default("useflcf",0); 00768 00769 //return the correct results 00770 return align_using_base(this_img, to, cmp_name, cmp_params); 00771 00772 }
virtual string EMAN::RotateTranslateScaleAligner::get_desc | ( | ) | const [inline, virtual] |
Implements EMAN::Aligner.
Definition at line 482 of file aligner.h.
00483 { 00484 return "Performs rotational alignment and follows this with translational and then scaling alignment."; 00485 }
virtual string EMAN::RotateTranslateScaleAligner::get_name | ( | ) | const [inline, virtual] |
virtual TypeDict EMAN::RotateTranslateScaleAligner::get_param_types | ( | ) | const [inline, virtual] |
Implements EMAN::Aligner.
Definition at line 492 of file aligner.h.
References EMAN::EMObject::FLOAT, EMAN::EMObject::INT, and EMAN::TypeDict::put().
00493 { 00494 TypeDict d; 00495 d.put("min", EMObject::FLOAT, "Minimum scaling (default: 0.95)"); 00496 d.put("max", EMObject::FLOAT, "Maximum scaling (default: 1.05)"); 00497 d.put("step", EMObject::FLOAT, "Scaling step (default: 0.01)"); 00498 d.put("maxshift", EMObject::INT, "Maximum translation in pixels"); 00499 d.put("nozero", EMObject::INT,"Zero translation not permitted (useful for CCD images)"); 00500 d.put("rfp_mode", EMObject::INT,"Either 0,1 or 2. A temporary flag for testing the rotational foot print"); 00501 d.put("useflcf", EMObject::INT,"Use Fast Local Correlation Function rather than CCF for translational alignment"); 00502 return d; 00503 }
static Aligner* EMAN::RotateTranslateScaleAligner::NEW | ( | ) | [inline, static] |
Definition at line 487 of file aligner.h.
References RotateTranslateScaleAligner().
00488 { 00489 return new RotateTranslateScaleAligner(); 00490 }
const string RotateTranslateScaleAligner::NAME = "rotate_translate_scale" [static] |