EMAN2
|
#include <reconstructor.h>
Public Member Functions | |
nn4Reconstructor () | |
nn4Reconstructor (const string &symmetry, int size, int npad) | |
virtual | ~nn4Reconstructor () |
virtual void | setup () |
Initialize the reconstructor. More... | |
virtual int | insert_slice (const EMData *const slice, const Transform &euler, const float weight) |
Insert an image slice to the reconstructor. More... | |
virtual EMData * | finish (bool doift=true) |
Finish reconstruction and return the complete model. More... | |
virtual string | get_name () const |
Get the unique name of this class (especially for factory based instantiation access) More... | |
virtual string | get_desc () const |
Get a clear, concise description of this class. More... | |
virtual TypeDict | get_param_types () const |
void | setup (const string &symmetry, int size, int npad) |
int | insert_padfft_slice (EMData *padded, const Transform &trans, float mult=1) |
Public Member Functions inherited from EMAN::Reconstructor | |
Reconstructor () | |
virtual | ~Reconstructor () |
virtual void | setup_seed (EMData *seed, float seed_weight) |
Initialize the reconstructor with a seed volume. More... | |
virtual void | setup_seedandweights (EMData *seed, EMData *weight) |
Initialize the reconstructor with a seed volume, as above. More... | |
virtual EMData * | preprocess_slice (const EMData *const slice, const Transform &t=Transform()) |
While you can just insert unprocessed slices, if you call preprocess_slice yourself, and insert the returned slice instead, repeatedly, it can save a fair bit of computation. More... | |
int | insert_slice (const EMData *const slice, const Transform &euler) |
virtual int | determine_slice_agreement (EMData *slice, const Transform &euler, const float weight=1.0, bool sub=true) |
Compares a slice to the current reconstruction volume and computes a normalization factor and quality. More... | |
virtual EMData * | projection (const Transform &euler, int ret_fourier=1) |
This will create a projection from the current reconstruction. More... | |
virtual void | clear () |
set the volume and tmp_volume data to zero, for use in Monte Carlo reconstructors More... | |
void | print_params () const |
Print the current parameters to std::out. More... | |
EMObject & | operator[] (const string &key) |
Public Member Functions inherited from EMAN::FactoryBase | |
FactoryBase () | |
virtual | ~FactoryBase () |
Dict | get_params () const |
get a copy of the parameters of this class More... | |
void | set_params (const Dict &new_params) |
Set new parameters. More... | |
void | set_param (const string key, const EMObject val) |
void | insert_params (const Dict &new_params) |
Insert parameters. More... | |
Dict | copy_relevant_params (const FactoryBase *const that) const |
Static Public Member Functions | |
static Reconstructor * | NEW () |
Static Public Attributes | |
static const string | NAME = "nn4" |
Private Member Functions | |
void | buildFFTVolume () |
void | buildNormVolume () |
void | load_default_settings () |
Private Attributes | |
EMData * | m_volume |
EMData * | m_wptr |
string | m_symmetry |
int | m_weighting |
int | m_vnx |
int | m_vny |
int | m_vnz |
int | m_npad |
int | m_nsym |
int | m_ndim |
int | m_vnzp |
int | m_vnyp |
int | m_vnxp |
int | m_vnzc |
int | m_vnyc |
int | m_vnxc |
float | m_wghta |
float | m_wghtb |
float | m_osnr |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::FactoryBase | |
Dict | params |
This is the dictionary the stores the parameters of the object. More... | |
Definition at line 1012 of file reconstructor.h.
nn4Reconstructor::nn4Reconstructor | ( | ) |
Definition at line 3164 of file reconstructor.cpp.
References m_volume, and m_wptr.
Referenced by NEW().
nn4Reconstructor::nn4Reconstructor | ( | const string & | symmetry, |
int | size, | ||
int | npad | ||
) |
Definition at line 3170 of file reconstructor.cpp.
References load_default_settings(), and setup().
|
virtual |
Definition at line 3177 of file reconstructor.cpp.
|
private |
Definition at line 3233 of file reconstructor.cpp.
References m_npad, m_vnxp, m_vnyp, m_vnzp, m_volume, and EMAN::FactoryBase::params.
Referenced by setup().
|
private |
Definition at line 3258 of file reconstructor.cpp.
References m_vnxc, m_vnyp, m_vnzp, m_wptr, and EMAN::FactoryBase::params.
Referenced by setup().
|
virtual |
Finish reconstruction and return the complete model.
doift | A flag indicating whether the returned object should be guaranteed to be in real-space (true) or should be left in whatever space the reconstructor generated |
Reimplemented from EMAN::Reconstructor.
Definition at line 3354 of file reconstructor.cpp.
References circumfnn(), ESTIMATE, m_ndim, m_osnr, m_vnxc, m_vnyc, m_vnyp, m_vnzc, m_vnzp, m_volume, m_weighting, m_wghta, m_wptr, max2d(), and max3d().
|
inlinevirtual |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 1040 of file reconstructor.h.
|
inlinevirtual |
Get the unique name of this class (especially for factory based instantiation access)
Implements EMAN::FactoryBase.
Definition at line 1035 of file reconstructor.h.
References NAME.
|
inlinevirtual |
Implements EMAN::FactoryBase.
Definition at line 1050 of file reconstructor.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, EMAN::TypeDict::put(), and EMAN::EMObject::STRING.
int nn4Reconstructor::insert_padfft_slice | ( | EMData * | padded, |
const Transform & | trans, | ||
float | mult = 1 |
||
) |
Definition at line 3343 of file reconstructor.cpp.
References Assert, EMAN::Transform::get_sym_proj(), m_symmetry, m_volume, and m_wptr.
Referenced by insert_slice().
|
virtual |
Insert an image slice to the reconstructor.
To insert multiple image slices, call this function multiple times.
slice | Image slice. |
euler | Euler angle of this image slice. |
weight | A weighting factor for this slice, generally the number of particles in a class-average. May be ignored by some reconstructors |
Reimplemented from EMAN::Reconstructor.
Definition at line 3286 of file reconstructor.cpp.
References Assert, checked_delete(), insert_padfft_slice(), LOGERR, m_ndim, m_npad, m_vnx, m_vnxc, m_vnxp, m_vnyp, and EMAN::padfft_slice().
|
inlineprivate |
Definition at line 1088 of file reconstructor.h.
Referenced by nn4Reconstructor().
|
inlinestatic |
|
virtual |
Initialize the reconstructor.
Implements EMAN::Reconstructor.
Definition at line 3187 of file reconstructor.cpp.
References EMAN::Dict::has_key(), m_ndim, m_osnr, EMAN::FactoryBase::params, and setup().
Referenced by nn4Reconstructor(), and setup().
void nn4Reconstructor::setup | ( | const string & | symmetry, |
int | size, | ||
int | npad | ||
) |
Definition at line 3206 of file reconstructor.cpp.
References buildFFTVolume(), buildNormVolume(), ESTIMATE, EMAN::Transform::get_nsym(), m_ndim, m_npad, m_nsym, m_symmetry, m_vnx, m_vnxc, m_vnxp, m_vny, m_vnyc, m_vnyp, m_vnz, m_vnzc, m_vnzp, m_weighting, and m_wghta.
|
private |
Definition at line 1080 of file reconstructor.h.
Referenced by finish(), insert_slice(), and setup().
|
private |
Definition at line 1078 of file reconstructor.h.
Referenced by buildFFTVolume(), insert_slice(), and setup().
|
private |
Definition at line 1079 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1087 of file reconstructor.h.
|
private |
Definition at line 1075 of file reconstructor.h.
Referenced by insert_padfft_slice(), and setup().
|
private |
Definition at line 1077 of file reconstructor.h.
Referenced by insert_slice(), and setup().
|
private |
Definition at line 1082 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), insert_slice(), and setup().
|
private |
Definition at line 1081 of file reconstructor.h.
Referenced by buildFFTVolume(), insert_slice(), and setup().
|
private |
Definition at line 1077 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1082 of file reconstructor.h.
|
private |
Definition at line 1081 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNormVolume(), finish(), insert_slice(), and setup().
|
private |
Definition at line 1077 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1082 of file reconstructor.h.
|
private |
Definition at line 1081 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1073 of file reconstructor.h.
Referenced by buildFFTVolume(), finish(), insert_padfft_slice(), and nn4Reconstructor().
|
private |
Definition at line 1076 of file reconstructor.h.
|
private |
Definition at line 1085 of file reconstructor.h.
|
private |
Definition at line 1086 of file reconstructor.h.
|
private |
Definition at line 1074 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), insert_padfft_slice(), and nn4Reconstructor().
|
static |
Definition at line 1070 of file reconstructor.h.
Referenced by get_name().