EMAN2
|
FourierWeightAverager makes an average of a set of images in Fourier space using a per-image radial weight. More...
#include <averager.h>
Public Member Functions | |
FourierWeightAverager () | |
void | add_image (EMData *image) |
To add an image to the Averager. More... | |
EMData * | finish () |
Finish up the averaging and return the result. More... | |
string | get_name () const |
Get the Averager's name. More... | |
string | get_desc () const |
TypeDict | get_param_types () const |
Get Averager parameter information in a dictionary. More... | |
Public Member Functions inherited from EMAN::Averager | |
Averager () | |
virtual | ~Averager () |
virtual void | add_image_list (const vector< EMData * > &images) |
To add multiple images to the Averager. More... | |
virtual void | set_params (const Dict &new_params) |
Set the Averager parameters using a key/value dictionary. More... | |
virtual void | mult (const float &s) |
Multiply the result image by some floating point constant This is useful when weighting the input images prior to calling add_image - a situation where it is likely you want to divide by the sum of the weights. More... | |
Static Public Member Functions | |
static Averager * | NEW () |
Static Public Attributes | |
static const string | NAME = "weightedfourier" |
Private Attributes | |
EMData * | normimage |
int | freenorm |
int | nimg |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::Averager | |
Dict | params |
EMData * | result |
FourierWeightAverager makes an average of a set of images in Fourier space using a per-image radial weight.
The provided XYData object for each inserted image should range from x=0 - 0.5*sqrt(2), and contains the radial weights from 0 - Nyquist at the point. If the x range is insufficient, values will be clamped at the ends of the available x-range. 2-D Images only, but will work with rectangular images.
normimage | After finish() will contain the sum of the weights in each Fourier location. Size must be ((nx+1)/2,y) |
Definition at line 301 of file averager.h.
FourierWeightAverager::FourierWeightAverager | ( | ) |
|
virtual |
To add an image to the Averager.
This image will be averaged in this function.
image | The image to be averaged. |
Reimplemented from EMAN::Averager.
Definition at line 468 of file averager.cpp.
References freenorm, get_name(), EMAN::XYData::get_yatx(), EMAN::Util::hypot2(), EMAN::EMUtil::is_same_size(), LOGERR, nimg, normimage, EMAN::Averager::params, EMAN::Averager::result, EMAN::Dict::set_default(), x, and y.
|
virtual |
Finish up the averaging and return the result.
Implements EMAN::Averager.
Definition at line 516 of file averager.cpp.
References freenorm, nimg, normimage, EMAN::Averager::result, x, and y.
|
inlinevirtual |
Implements EMAN::Averager.
Definition at line 314 of file averager.h.
|
inlinevirtual |
Get the Averager's name.
Each Averager is identified by a unique name.
Implements EMAN::Averager.
Definition at line 309 of file averager.h.
References NAME.
Referenced by add_image().
|
inlinevirtual |
Get Averager parameter information in a dictionary.
Each parameter has one record in the dictionary. Each record contains its name, data-type, and description.
Reimplemented from EMAN::Averager.
Definition at line 324 of file averager.h.
References EMAN::EMObject::EMDATA, and EMAN::TypeDict::put().
|
inlinestatic |
Definition at line 319 of file averager.h.
References FourierWeightAverager().
|
private |
Definition at line 336 of file averager.h.
Referenced by add_image(), and finish().
|
static |
Definition at line 332 of file averager.h.
Referenced by get_name().
|
private |
Definition at line 337 of file averager.h.
Referenced by add_image(), and finish().
|
private |
Definition at line 335 of file averager.h.
Referenced by add_image(), and finish().