EMAN2
|
#include <reconstructor.h>
Public Member Functions | |
nnSSNR_Reconstructor () | |
nnSSNR_Reconstructor (const string &symmetry, int size, int npad) | |
~nnSSNR_Reconstructor () | |
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 = "nnSSNR" |
Private Member Functions | |
void | buildFFTVolume () |
void | buildNormVolume () |
void | buildNorm2Volume () |
Private Attributes | |
EMData * | m_volume |
EMData * | m_wptr |
EMData * | m_wptr2 |
string | m_symmetry |
int | m_weighting |
int | m_vnx |
int | m_vny |
int | m_vnz |
int | m_npad |
int | m_nsym |
int | m_vnzp |
int | m_vnyp |
int | m_vnxp |
int | m_vnzc |
int | m_vnyc |
int | m_vnxc |
float | m_wghta |
float | m_wghtb |
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 1197 of file reconstructor.h.
nnSSNR_Reconstructor::nnSSNR_Reconstructor | ( | ) |
nnSSNR_Reconstructor::nnSSNR_Reconstructor | ( | const string & | symmetry, |
int | size, | ||
int | npad | ||
) |
Definition at line 3884 of file reconstructor.cpp.
nnSSNR_Reconstructor::~nnSSNR_Reconstructor | ( | ) |
Definition at line 3893 of file reconstructor.cpp.
|
private |
Definition at line 3945 of file reconstructor.cpp.
References m_npad, m_vnxc, m_vnxp, m_vnyp, m_vnzp, m_volume, and EMAN::FactoryBase::params.
Referenced by setup().
|
private |
Definition at line 3969 of file reconstructor.cpp.
References m_vnxc, m_vnyp, m_vnzp, m_wptr2, and EMAN::FactoryBase::params.
Referenced by setup().
|
private |
Definition at line 3961 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 |
(*SSNR)(i,0,0) = nom[i]/denom[i] - 1;///
Reimplemented from EMAN::Reconstructor.
Definition at line 4013 of file reconstructor.cpp.
References ESTIMATE, EMAN::Util::get_max(), m_vnxc, m_vnxp, m_vnyc, m_vnyp, m_vnzc, m_vnzp, m_volume, m_weighting, m_wghta, m_wptr, m_wptr2, max3d(), EMAN::FactoryBase::params, EMAN::Util::round(), and sqrt().
|
inlinevirtual |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 1226 of file reconstructor.h.
|
inlinevirtual |
Get the unique name of this class (especially for factory based instantiation access)
Implements EMAN::FactoryBase.
Definition at line 1221 of file reconstructor.h.
References NAME.
|
inlinevirtual |
Implements EMAN::FactoryBase.
Definition at line 1236 of file reconstructor.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, EMAN::TypeDict::put(), and EMAN::EMObject::STRING.
int nnSSNR_Reconstructor::insert_padfft_slice | ( | EMData * | padded, |
const Transform & | trans, | ||
float | mult = 1 |
||
) |
Definition at line 4002 of file reconstructor.cpp.
References Assert, EMAN::Transform::get_sym_proj(), m_nsym, m_symmetry, m_volume, m_wptr, and m_wptr2.
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 3978 of file reconstructor.cpp.
References checked_delete(), insert_padfft_slice(), LOGERR, m_npad, m_vnx, and EMAN::padfft_slice().
|
inlinestatic |
Definition at line 1231 of file reconstructor.h.
References nnSSNR_Reconstructor().
|
virtual |
Initialize the reconstructor.
Implements EMAN::Reconstructor.
Definition at line 3904 of file reconstructor.cpp.
References EMAN::Dict::has_key(), EMAN::FactoryBase::params, and setup().
Referenced by nnSSNR_Reconstructor(), and setup().
void nnSSNR_Reconstructor::setup | ( | const string & | symmetry, |
int | size, | ||
int | npad | ||
) |
Definition at line 3916 of file reconstructor.cpp.
References buildFFTVolume(), buildNorm2Volume(), buildNormVolume(), ESTIMATE, EMAN::Transform::get_nsym(), 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, m_wghta, and m_wghtb.
|
private |
Definition at line 1264 of file reconstructor.h.
Referenced by buildFFTVolume(), insert_slice(), and setup().
|
private |
Definition at line 1265 of file reconstructor.h.
Referenced by insert_padfft_slice(), and setup().
|
private |
Definition at line 1261 of file reconstructor.h.
Referenced by insert_padfft_slice(), and setup().
|
private |
Definition at line 1263 of file reconstructor.h.
Referenced by insert_slice(), and setup().
|
private |
Definition at line 1267 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNorm2Volume(), buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1266 of file reconstructor.h.
Referenced by buildFFTVolume(), finish(), and setup().
|
private |
Definition at line 1263 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1267 of file reconstructor.h.
|
private |
Definition at line 1266 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNorm2Volume(), buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1263 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1267 of file reconstructor.h.
|
private |
Definition at line 1266 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNorm2Volume(), buildNormVolume(), finish(), and setup().
|
private |
Definition at line 1258 of file reconstructor.h.
Referenced by buildFFTVolume(), finish(), insert_padfft_slice(), and nnSSNR_Reconstructor().
|
private |
Definition at line 1262 of file reconstructor.h.
|
private |
Definition at line 1271 of file reconstructor.h.
|
private |
Definition at line 1272 of file reconstructor.h.
Referenced by setup().
|
private |
Definition at line 1259 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), insert_padfft_slice(), and nnSSNR_Reconstructor().
|
private |
Definition at line 1260 of file reconstructor.h.
Referenced by buildNorm2Volume(), finish(), insert_padfft_slice(), and nnSSNR_Reconstructor().
|
static |
Definition at line 1255 of file reconstructor.h.
Referenced by get_name().