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

Rotational, translational alignment by resampling to polar coordinates. More...

#include <aligner.h>

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

Public Member Functions

virtual EMDataalign (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. 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 = "rotate_translate_resample"
 

Additional Inherited Members

- Protected Attributes inherited from EMAN::Aligner
Dict params
 

Detailed Description

Rotational, translational alignment by resampling to polar coordinates.

translation if found by varing to origin using for polar coordinate resampling in real space

Parameters
txmaximum transltion in x direction, must by less than (n/2 - 1 - r2)
tumaximum transltion in y direction, must by less than (n/2 - 1 - r2)
r1inner ring
r2outer ring
Author
John Flanagan
Date
Feb 8th 2011

Definition at line 723 of file aligner.h.

Member Function Documentation

◆ align() [1/2]

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

Implements EMAN::Aligner.

Definition at line 729 of file aligner.h.

730 {
731 return align(this_img, to_img, "sqeuclidean", Dict());
732 }
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.

References align().

◆ align() [2/2]

virtual EMData * EMAN::RotateTranslateAlignerPawel::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.

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::RotateTranslateAlignerPawel::get_desc ( ) const
inlinevirtual

Implements EMAN::Aligner.

Definition at line 739 of file aligner.h.

740 {
741 return "Performs rotational alignment and translation align by resampling to polar coordinates in real space.";
742 }

◆ get_name()

virtual string EMAN::RotateTranslateAlignerPawel::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 734 of file aligner.h.

735 {
736 return NAME;
737 }
static const string NAME
Definition: aligner.h:760

References NAME.

◆ get_param_types()

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

Implements EMAN::Aligner.

Definition at line 749 of file aligner.h.

750 {
751 TypeDict d;
752 //d.put("usedot", EMObject::INT);
753 d.put("tx", EMObject::INT, "Maximum x translation in pixels, Default = 0");
754 d.put("ty", EMObject::INT, "Maximum y translation in pixels, Default = 0");
755 d.put("r1", EMObject::INT, "Inner ring, pixels");
756 d.put("r2", EMObject::INT, "Outer ring, pixels");
757 return d;
758 }

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

◆ NEW()

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

Definition at line 744 of file aligner.h.

745 {
746 return new RotateTranslateAlignerPawel();
747 }

Member Data Documentation

◆ NAME

const string RotateTranslateAlignerPawel::NAME = "rotate_translate_resample"
static

Definition at line 760 of file aligner.h.

Referenced by get_name().


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