EMAN2
|
nn4_ctf Direct Fourier Inversion Reconstructor More...
#include <reconstructor.h>
Public Member Functions | |
nn4_ctfReconstructor () | |
nn4_ctfReconstructor (const string &symmetry, int size, int npad, float snr, int sign) | |
virtual | ~nn4_ctfReconstructor () |
virtual void | setup () |
Initialize the reconstructor. More... | |
virtual int | insert_slice (const EMData *const slice, const Transform &euler, const float weight) |
Insert a slice into a 3D volume, in a given orientation. 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... | |
TypeDict | get_param_types () const |
void | setup (const string &symmetry, int size, int npad, float snr, int sign) |
int | insert_padfft_slice (EMData *padfft, EMData *ctf2d2, const Transform &trans, float mult=1) |
int | insert_buffed_slice (const EMData *buffer, float mult) |
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_ctf" |
Private Member Functions | |
void | buildFFTVolume () |
void | buildNormVolume () |
Private Attributes | |
EMData * | m_volume |
EMData * | m_wptr |
int | m_vnx |
int | m_vny |
int | m_vnz |
int | m_vnzp |
int | m_vnyp |
int | m_vnxp |
int | m_vnxc |
int | m_vnyc |
int | m_vnzc |
int | m_npad |
int | m_sign |
int | m_varsnr |
int | m_weighting |
float | m_wghta |
float | m_wghtb |
float | m_snr |
string | m_symmetry |
int | m_nsym |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::FactoryBase | |
Dict | params |
This is the dictionary the stores the parameters of the object. More... | |
nn4_ctf Direct Fourier Inversion Reconstructor
Definition at line 1279 of file reconstructor.h.
nn4_ctfReconstructor::nn4_ctfReconstructor | ( | ) |
Definition at line 4170 of file reconstructor.cpp.
References m_volume, and m_wptr.
Referenced by NEW().
nn4_ctfReconstructor::nn4_ctfReconstructor | ( | const string & | symmetry, |
int | size, | ||
int | npad, | ||
float | snr, | ||
int | sign | ||
) |
Definition at line 4176 of file reconstructor.cpp.
References setup().
|
virtual |
Definition at line 4181 of file reconstructor.cpp.
|
private |
Definition at line 4242 of file reconstructor.cpp.
References m_npad, m_vnxp, m_vnyp, m_vnzp, m_volume, and EMAN::FactoryBase::params.
Referenced by setup().
|
private |
|
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 4377 of file reconstructor.cpp.
References circumfnn(), ESTIMATE, m_snr, m_varsnr, m_vnxc, m_vnyc, m_vnyp, m_vnzc, m_vnzp, m_volume, m_weighting, m_wghta, m_wptr, max3d(), and sqrt().
|
inlinevirtual |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 1308 of file reconstructor.h.
|
inlinevirtual |
Get the unique name of this class (especially for factory based instantiation access)
Implements EMAN::FactoryBase.
Definition at line 1303 of file reconstructor.h.
References NAME.
|
inlinevirtual |
Implements EMAN::FactoryBase.
Definition at line 1319 of file reconstructor.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, EMAN::TypeDict::put(), and EMAN::EMObject::STRING.
int nn4_ctfReconstructor::insert_buffed_slice | ( | const EMData * | buffer, |
float | mult | ||
) |
Definition at line 4330 of file reconstructor.cpp.
References m_volume, and m_wptr.
Referenced by insert_slice().
int nn4_ctfReconstructor::insert_padfft_slice | ( | EMData * | padfft, |
EMData * | ctf2d2, | ||
const Transform & | trans, | ||
float | mult = 1 |
||
) |
Definition at line 4353 of file reconstructor.cpp.
References Assert, EMAN::Transform::get_sym_proj(), m_symmetry, m_volume, and m_wptr.
Referenced by insert_slice().
|
virtual |
Insert a slice into a 3D volume, in a given orientation.
slice | the image slice to be inserted into the 3D volume |
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 |
NullPointerException | if the input EMData pointer is null |
ImageFormatException | if the image is complex as opposed to real |
Reimplemented from EMAN::Reconstructor.
Definition at line 4275 of file reconstructor.cpp.
References checked_delete(), EMAN::Dict::clear(), insert_buffed_slice(), insert_padfft_slice(), LOGERR, m_npad, m_vnx, EMAN::padfft_slice(), EMAN::FactoryBase::params, and EMAN::Ctf::to_dict().
|
inlinestatic |
Definition at line 1313 of file reconstructor.h.
References nn4_ctfReconstructor().
|
virtual |
Initialize the reconstructor.
Implements EMAN::Reconstructor.
Definition at line 4190 of file reconstructor.cpp.
References EMAN::Dict::has_key(), m_varsnr, EMAN::FactoryBase::params, and setup().
Referenced by nn4_ctfReconstructor(), and setup().
void nn4_ctfReconstructor::setup | ( | const string & | symmetry, |
int | size, | ||
int | npad, | ||
float | snr, | ||
int | sign | ||
) |
Definition at line 4207 of file reconstructor.cpp.
References buildFFTVolume(), buildNormVolume(), ESTIMATE, EMAN::Transform::get_nsym(), EMAN::Dict::has_key(), m_npad, m_nsym, m_sign, m_snr, m_symmetry, m_vnx, m_vnxc, m_vnxp, m_vny, m_vnyc, m_vnyp, m_vnz, m_vnzc, m_vnzp, m_weighting, m_wghta, m_wghtb, NONE, and EMAN::FactoryBase::params.
|
private |
Definition at line 1348 of file reconstructor.h.
Referenced by buildFFTVolume(), insert_slice(), and setup().
|
private |
Definition at line 1355 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1349 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1353 of file reconstructor.h.
|
private |
Definition at line 1354 of file reconstructor.h.
Referenced by insert_padfft_slice(), and setup().
|
private |
Definition at line 1350 of file reconstructor.h.
|
private |
Definition at line 1345 of file reconstructor.h.
Referenced by insert_slice(), and setup().
|
private |
Definition at line 1347 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1346 of file reconstructor.h.
Referenced by buildFFTVolume(), and setup().
|
private |
Definition at line 1345 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1347 of file reconstructor.h.
|
private |
Definition at line 1346 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1345 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1347 of file reconstructor.h.
|
private |
Definition at line 1346 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1343 of file reconstructor.h.
Referenced by buildFFTVolume(), finish(), insert_buffed_slice(), insert_padfft_slice(), and nn4_ctfReconstructor().
|
private |
Definition at line 1351 of file reconstructor.h.
|
private |
Definition at line 1352 of file reconstructor.h.
|
private |
Definition at line 1352 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1344 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), insert_buffed_slice(), insert_padfft_slice(), and nn4_ctfReconstructor().
|
static |
Definition at line 1340 of file reconstructor.h.
Referenced by get_name().