EMAN2
|
LocalWeightAverager makes an average of a set of images in Fourier space using a per-image radial weight. More...
#include <averager.h>
Public Member Functions | |
LocalWeightAverager () | |
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 = "localweight" |
Private Attributes | |
std::vector< EMData * > | images |
EMData * | normimage |
int | freenorm |
int | nimg |
int | fourier |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::Averager | |
Dict | params |
EMData * | result |
LocalWeightAverager 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 214 of file averager.h.
LocalWeightAverager::LocalWeightAverager | ( | ) |
|
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 555 of file averager.cpp.
References fourier, freenorm, images, nimg, normimage, EMAN::Averager::params, EMAN::Averager::result, and EMAN::Dict::set_default().
|
virtual |
Finish up the averaging and return the result.
Implements EMAN::Averager.
Definition at line 583 of file averager.cpp.
References fourier, freenorm, images, log(), nimg, normimage, EMAN::Averager::params, EMAN::Averager::result, EMAN::Dict::set_default(), and sqrt().
|
inlinevirtual |
Implements EMAN::Averager.
Definition at line 227 of file averager.h.
|
inlinevirtual |
Get the Averager's name.
Each Averager is identified by a unique name.
Implements EMAN::Averager.
Definition at line 222 of file averager.h.
References NAME.
|
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 237 of file averager.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, and EMAN::TypeDict::put().
|
inlinestatic |
|
private |
Definition at line 254 of file averager.h.
Referenced by add_image(), and finish().
|
private |
Definition at line 252 of file averager.h.
Referenced by add_image(), and finish().
|
private |
Definition at line 250 of file averager.h.
Referenced by add_image(), and finish().
|
static |
Definition at line 247 of file averager.h.
Referenced by get_name().
|
private |
Definition at line 253 of file averager.h.
Referenced by add_image(), and finish().
|
private |
Definition at line 251 of file averager.h.
Referenced by add_image(), and finish().