#include <analyzer.h>
Inheritance diagram for EMAN::Analyzer:
Public Member Functions | |
Analyzer () | |
virtual | ~Analyzer () |
virtual int | insert_image (EMData *image)=0 |
insert a image to the list of input images | |
virtual int | insert_images_list (vector< EMData * > image_list) |
insert a list of images to the list of input images | |
virtual vector< EMData * > | analyze ()=0 |
main function for Analyzer, analyze input images and create output images | |
virtual string | get_name () const =0 |
Get the Analyzer's name. | |
virtual string | get_desc () const =0 |
Get the Analyzer's description. | |
virtual void | set_params (const Dict &new_params) |
Set the Analyzer parameters using a key/value dictionary. | |
virtual Dict | get_params () const |
Get the Reconstructor's parameters in a key/value dictionary. | |
virtual TypeDict | get_param_types () const =0 |
Get Analyzer parameter information in a dictionary. | |
Protected Attributes | |
Dict | params |
vector< EMData * > | 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 60 of file analyzer.h.
EMAN::Analyzer::Analyzer | ( | ) | [inline] |
virtual EMAN::Analyzer::~Analyzer | ( | ) | [inline, virtual] |
virtual vector<EMData*> EMAN::Analyzer::analyze | ( | ) | [pure virtual] |
main function for Analyzer, analyze input images and create output images
Implemented in EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, EMAN::PCAsmall, EMAN::PCAlarge, and EMAN::varimax.
virtual string EMAN::Analyzer::get_desc | ( | ) | const [pure virtual] |
Get the Analyzer's description.
Implemented in EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, EMAN::PCAsmall, EMAN::PCAlarge, and EMAN::varimax.
virtual string EMAN::Analyzer::get_name | ( | ) | const [pure virtual] |
Get the Analyzer's name.
Each Analyzer is identified by a unique name.
Implemented in EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, EMAN::PCAsmall, EMAN::PCAlarge, and EMAN::varimax.
virtual TypeDict EMAN::Analyzer::get_param_types | ( | ) | const [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::KMeansAnalyzer, EMAN::SVDAnalyzer, EMAN::PCAsmall, EMAN::PCAlarge, and EMAN::varimax.
virtual Dict EMAN::Analyzer::get_params | ( | ) | const [inline, virtual] |
Get the Reconstructor's parameters in a key/value dictionary.
Definition at line 106 of file analyzer.h.
References params.
00107 { 00108 return params; 00109 }
virtual int EMAN::Analyzer::insert_image | ( | EMData * | image | ) | [pure virtual] |
insert a image to the list of input images
image |
Implemented in EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, EMAN::PCAsmall, EMAN::PCAlarge, and EMAN::varimax.
Referenced by insert_images_list().
int Analyzer::insert_images_list | ( | vector< EMData * > | image_list | ) | [virtual] |
insert a list of images to the list of input images
image_list |
Reimplemented in EMAN::SVDAnalyzer.
Definition at line 68 of file analyzer.cpp.
References insert_image().
00069 { 00070 vector<EMData *>::const_iterator iter; 00071 for(iter=image_list.begin(); iter!=image_list.end(); ++iter) { 00072 insert_image(*iter); 00073 } 00074 return 0; 00075 }
virtual void EMAN::Analyzer::set_params | ( | const Dict & | new_params | ) | [inline, virtual] |
Set the Analyzer parameters using a key/value dictionary.
new_params | A dictionary containing the new parameters. |
Reimplemented in EMAN::KMeansAnalyzer, EMAN::SVDAnalyzer, EMAN::PCAsmall, EMAN::PCAlarge, and EMAN::varimax.
Definition at line 98 of file analyzer.h.
References params.
00099 { 00100 params = new_params; 00101 }
vector<EMData *> EMAN::Analyzer::images [protected] |
Definition at line 121 of file analyzer.h.
Referenced by EMAN::varimax::analyze(), EMAN::PCAlarge::analyze(), EMAN::PCAsmall::analyze(), EMAN::KMeansAnalyzer::analyze(), EMAN::KMeansAnalyzer::insert_image(), EMAN::SVDAnalyzer::insert_images_list(), EMAN::KMeansAnalyzer::reclassify(), EMAN::KMeansAnalyzer::reseed(), and EMAN::KMeansAnalyzer::update_centers().
Dict EMAN::Analyzer::params [mutable, protected] |
Definition at line 120 of file analyzer.h.
Referenced by EMAN::varimax::analyze(), get_params(), set_params(), EMAN::SVDAnalyzer::set_params(), EMAN::varimax::set_params(), EMAN::PCAlarge::set_params(), EMAN::PCAsmall::set_params(), and EMAN::KMeansAnalyzer::set_params().