EMAN2
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
EMAN::RTFSlowExhaustiveAligner Class Reference

rotational, translational and flip alignment using exhaustive search. More...

#include <aligner.h>

Inheritance diagram for EMAN::RTFSlowExhaustiveAligner:
Inheritance graph
[legend]
Collaboration diagram for EMAN::RTFSlowExhaustiveAligner:
Collaboration graph
[legend]

Public Member Functions

virtual EMDataalign (EMData *this_img, EMData *to_img, const string &cmp_name, const Dict &cmp_params) const
 To align 'this_img' with another image passed in through its parameters. More...
 
virtual EMDataalign (EMData *this_img, EMData *to_img) const
 
virtual string get_name () const
 Get the Aligner's name. More...
 
virtual string get_desc () const
 
virtual TypeDict get_param_types () const
 
- Public Member Functions inherited from EMAN::Aligner
virtual ~Aligner ()
 
virtual Dict get_params () const
 Get the Aligner parameters in a key/value dictionary. More...
 
virtual void set_params (const Dict &new_params)
 Set the Aligner parameters using a key/value dictionary. More...
 
virtual vector< Dictxform_align_nbest (EMData *this_img, EMData *to_img, const unsigned int nsoln, const string &cmp_name, const Dict &cmp_params) const
 This function first added in the context of the 3D aligners used by e2tomohunter: which wants the n best solutions, as opposed to just the best. More...
 

Static Public Member Functions

static AlignerNEW ()
 

Static Public Attributes

static const string NAME = "rtf_slow_exhaustive"
 

Additional Inherited Members

- Protected Attributes inherited from EMAN::Aligner
Dict params
 

Detailed Description

rotational, translational and flip alignment using exhaustive search.

This is very slow but can ensure localization of the global maximum

Parameters
flipOptional. This is the flipped version of the images that is being aligned. If specified it will be used for the handedness check, if not a flipped copy of the image will be made
maxshiftThe maximum length of the detectable translational shift
transtepThe translation step to take when honing the alignment, which occurs after coarse alignment
angstepThe angular step (in degrees) to take in the exhaustive search for the solution angle. Typically very small i.e. 3 or smaller

Definition at line 1217 of file aligner.h.

Member Function Documentation

◆ align() [1/2]

virtual EMData * EMAN::RTFSlowExhaustiveAligner::align ( EMData this_img,
EMData to_img 
) const
inlinevirtual

Implements EMAN::Aligner.

Definition at line 1222 of file aligner.h.

1223 {
1224 return align(this_img, to_img, "sqeuclidean", Dict());
1225 }
virtual EMData * align(EMData *this_img, EMData *to_img, const string &cmp_name, const Dict &cmp_params) const
To align 'this_img' with another image passed in through its parameters.

References align().

◆ align() [2/2]

virtual EMData * EMAN::RTFSlowExhaustiveAligner::align ( EMData this_img,
EMData to_img,
const string &  cmp_name,
const Dict cmp_params 
) 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.

Parameters
this_imgThe image to be compared.
to_img'this_img" is aligned with 'to_img'.
cmp_nameThe comparison method to compare the two images.
cmp_paramsThe parameter dictionary for comparison method.
Returns
The aligned image.

Implements EMAN::Aligner.

Referenced by align().

◆ get_desc()

virtual string EMAN::RTFSlowExhaustiveAligner::get_desc ( ) const
inlinevirtual

Implements EMAN::Aligner.

Definition at line 1231 of file aligner.h.

1232 {
1233 return "Experimental full 2D alignment with handedness check using more exhaustive search (not necessarily better than RTFBest)";
1234 }

◆ get_name()

virtual string EMAN::RTFSlowExhaustiveAligner::get_name ( ) const
inlinevirtual

Get the Aligner's name.

Each Aligner is identified by a unique name.

Returns
The Aligner's name.

Implements EMAN::Aligner.

Definition at line 1226 of file aligner.h.

1227 {
1228 return NAME;
1229 }
static const string NAME
Definition: aligner.h:1251

References NAME.

◆ get_param_types()

virtual TypeDict EMAN::RTFSlowExhaustiveAligner::get_param_types ( ) const
inlinevirtual

Implements EMAN::Aligner.

Definition at line 1241 of file aligner.h.

1242 {
1243 TypeDict d;
1244 d.put("flip", EMObject::EMDATA,"Optional. This is the flipped version of the images that is being aligned. If specified it will be used for the handedness check, if not a flipped copy of the image will be made");
1245 d.put("maxshift", EMObject::INT,"The maximum length of the detectable translational shift");
1246 d.put("transtep", EMObject::FLOAT,"The translation step to take when honing the alignment, which occurs after coarse alignment");
1247 d.put("angstep", EMObject::FLOAT,"The angular step (in degrees) to take in the exhaustive search for the solution angle. Typically very small i.e. 3 or smaller.");
1248 return d;
1249 }

References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, and EMAN::TypeDict::put().

◆ NEW()

static Aligner * EMAN::RTFSlowExhaustiveAligner::NEW ( )
inlinestatic

Definition at line 1236 of file aligner.h.

1237 {
1238 return new RTFSlowExhaustiveAligner();
1239 }

Member Data Documentation

◆ NAME

const string RTFSlowExhaustiveAligner::NAME = "rtf_slow_exhaustive"
static

Definition at line 1251 of file aligner.h.

Referenced by get_name().


The documentation for this class was generated from the following files: