EMAN2
|
IterAverager performs iterative averaging of 3x3 pixel zones around each pixel, computing the mean of the 9 pixels initially, then iteratively refining the average to produce something self-consistent, but hopefully less noisy. More...
#include <averager.h>
Public Member Functions | |
IterAverager () | |
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 = "iterative" |
Private Attributes | |
std::vector< EMData * > | images |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::Averager | |
Dict | params |
EMData * | result |
IterAverager performs iterative averaging of 3x3 pixel zones around each pixel, computing the mean of the 9 pixels initially, then iteratively refining the average to produce something self-consistent, but hopefully less noisy.
Definition at line 260 of file averager.h.
IterAverager::IterAverager | ( | ) |
|
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 690 of file averager.cpp.
References images.
|
virtual |
Finish up the averaging and return the result.
Implements EMAN::Averager.
Definition at line 697 of file averager.cpp.
References ImageDimensionException, images, EMAN::Averager::result, to_zero(), x, and y.
|
inlinevirtual |
Implements EMAN::Averager.
Definition at line 273 of file averager.h.
|
inlinevirtual |
Get the Averager's name.
Each Averager is identified by a unique name.
Implements EMAN::Averager.
Definition at line 268 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 283 of file averager.h.
|
inlinestatic |
|
private |
Definition at line 292 of file averager.h.
Referenced by add_image(), and finish().
|
static |
Definition at line 289 of file averager.h.
Referenced by get_name().