EMAN2
|
Analyzer class defines a way to take a List of images as input, and returns a new List of images. More...
#include <analyzer.h>
Public Member Functions | |
Analyzer () | |
virtual | ~Analyzer () |
virtual int | insert_image (EMData *image)=0 |
insert a image to the list of input images More... | |
virtual int | insert_images_list (vector< EMData * > image_list) |
insert a list of images to the list of input images More... | |
virtual vector< EMData * > | analyze ()=0 |
main function for Analyzer, analyze input images and create output images More... | |
virtual string | get_name () const =0 |
Get the Analyzer's name. More... | |
virtual string | get_desc () const =0 |
Get the Analyzer's description. More... | |
virtual void | set_params (const Dict &new_params) |
Set the Analyzer parameters using a key/value dictionary. More... | |
virtual Dict | get_params () const |
Get the Reconstructor's parameters in a key/value dictionary. More... | |
virtual TypeDict | get_param_types () const =0 |
Get Analyzer parameter information in a dictionary. More... | |
Protected Attributes | |
Dict | params |
vector< EMData * > | images |
Analyzer class defines a way to take a List of images as input, and returns a new List of images.
Analyzer class is the base class for all analyzer classes. Each specific analyzer has a unique ID name. This name is used to call a analyzer.
All Analyzer classes in EMAN are managed by a Factory pattern. So each Analyzer class must define:
Definition at line 56 of file analyzer.h.
|
inline |
Definition at line 59 of file analyzer.h.
|
inlinevirtual |
Definition at line 61 of file analyzer.h.
|
pure virtual |
main function for Analyzer, analyze input images and create output images
Implemented in EMAN::InertiaMatrixAnalyzer, EMAN::ShapeAnalyzer, EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, and EMAN::CircularAverageAnalyzer.
|
pure virtual |
Get the Analyzer's description.
Implemented in EMAN::InertiaMatrixAnalyzer, EMAN::ShapeAnalyzer, EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, and EMAN::CircularAverageAnalyzer.
|
pure virtual |
Get the Analyzer's name.
Each Analyzer is identified by a unique name.
Implemented in EMAN::InertiaMatrixAnalyzer, EMAN::ShapeAnalyzer, EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, and EMAN::CircularAverageAnalyzer.
|
pure virtual |
Get Analyzer parameter information in a dictionary.
Each parameter has one record in the dictionary. Each record contains its name, data-type, and description.
Implemented in EMAN::InertiaMatrixAnalyzer, EMAN::ShapeAnalyzer, EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, and EMAN::CircularAverageAnalyzer.
|
inlinevirtual |
Get the Reconstructor's parameters in a key/value dictionary.
Definition at line 102 of file analyzer.h.
References params.
|
pure virtual |
insert a image to the list of input images
image |
Implemented in EMAN::InertiaMatrixAnalyzer, EMAN::ShapeAnalyzer, EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, and EMAN::CircularAverageAnalyzer.
Referenced by insert_images_list().
|
virtual |
insert a list of images to the list of input images
image_list |
Reimplemented in EMAN::SVDAnalyzer.
Definition at line 69 of file analyzer.cpp.
References insert_image().
|
inlinevirtual |
Set the Analyzer parameters using a key/value dictionary.
new_params | A dictionary containing the new parameters. |
Reimplemented in EMAN::KMeansAnalyzer, and EMAN::SVDAnalyzer.
Definition at line 94 of file analyzer.h.
References params.
|
protected |
Definition at line 117 of file analyzer.h.
Referenced by EMAN::InertiaMatrixAnalyzer::analyze(), EMAN::ShapeAnalyzer::analyze(), EMAN::KMeansAnalyzer::analyze(), EMAN::CircularAverageAnalyzer::analyze(), EMAN::InertiaMatrixAnalyzer::insert_image(), EMAN::ShapeAnalyzer::insert_image(), EMAN::KMeansAnalyzer::insert_image(), EMAN::CircularAverageAnalyzer::insert_image(), EMAN::SVDAnalyzer::insert_images_list(), EMAN::KMeansAnalyzer::reclassify(), EMAN::KMeansAnalyzer::reseed(), and EMAN::KMeansAnalyzer::update_centers().
|
mutableprotected |
Definition at line 116 of file analyzer.h.
Referenced by EMAN::InertiaMatrixAnalyzer::analyze(), EMAN::ShapeAnalyzer::analyze(), EMAN::KMeansAnalyzer::analyze(), EMAN::CircularAverageAnalyzer::analyze(), get_params(), set_params(), EMAN::KMeansAnalyzer::set_params(), and EMAN::SVDAnalyzer::set_params().