EMAN2
|
TomoAverager averages a list of volumes in Fourier space. More...
#include <averager.h>
Public Member Functions | |
TomoAverager () | |
virtual | ~TomoAverager () |
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... | |
virtual void | mult (const float &) |
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... | |
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... | |
Static Public Member Functions | |
static Averager * | NEW () |
Static Public Attributes | |
static const string | NAME = "mean.tomo" |
Private Attributes | |
EMData * | norm_image |
float | thresh_sigma |
float | overlap |
int | nimg |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::Averager | |
Dict | params |
EMData * | result |
TomoAverager averages a list of volumes in Fourier space.
It excludes values near zero from the average, assuming they are part of the missing-cone/wedge. A threshold
thresh_sigma | a number, multiplied by the standard deviation of the image, below-which values are considered zero |
Definition at line 345 of file averager.h.
TomoAverager::TomoAverager | ( | ) |
|
inlinevirtual |
|
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 99 of file averager.cpp.
References EMAN::EMData::calc_radial_dist(), get_name(), EMAN::Util::hypot3(), EMAN::EMUtil::is_same_size(), LOGERR, nimg, norm_image, overlap, EMAN::Averager::params, EMAN::Averager::result, EMAN::Dict::set_default(), thresh_sigma, x, and y.
|
virtual |
Finish up the averaging and return the result.
Implements EMAN::Averager.
Definition at line 173 of file averager.cpp.
References EMAN::Dict::has_key(), nimg, norm_image, overlap, EMAN::Averager::params, EMAN::Averager::result, and EMAN::Dict::set_default().
|
inlinevirtual |
Implements EMAN::Averager.
Definition at line 363 of file averager.h.
|
inlinevirtual |
Get the Averager's name.
Each Averager is identified by a unique name.
Implements EMAN::Averager.
Definition at line 358 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 373 of file averager.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, and EMAN::TypeDict::put().
|
inlinevirtual |
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.
Hence call mult after all of the weighted images have been added.
s | the scaling factor. |
NullPointerException | if the EMData pointer (result) is NULL |
Reimplemented from EMAN::Averager.
Definition at line 384 of file averager.h.
|
inlinestatic |
|
static |
Definition at line 386 of file averager.h.
Referenced by get_name().
|
private |
Definition at line 392 of file averager.h.
Referenced by add_image(), and finish().
|
private |
Definition at line 389 of file averager.h.
Referenced by add_image(), finish(), and ~TomoAverager().
|
private |
Definition at line 391 of file averager.h.
Referenced by add_image(), and finish().
|
private |
Definition at line 390 of file averager.h.
Referenced by add_image().