EMAN2
|
This class originally added for 2D experimentation and prototying. More...
#include <reconstructor.h>
Public Member Functions | |
FourierReconstructorSimple2D () | |
virtual | ~FourierReconstructorSimple2D () |
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 |
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 |
Public Member Functions inherited from EMAN::ReconstructorVolumeData | |
ReconstructorVolumeData () | |
Only constructor All member variables are zeroed. More... | |
virtual | ~ReconstructorVolumeData () |
Destructor safely frees memory. More... | |
const EMData * | get_emdata () |
Get the main image pointer, probably redundant (not used) More... | |
Static Public Member Functions | |
static Reconstructor * | NEW () |
Static Public Attributes | |
static const string | NAME = "fouriersimple2D" |
Additional Inherited Members | |
Protected Member Functions inherited from EMAN::ReconstructorVolumeData | |
void | free_memory () |
Free allocated memorys The inherited class may have allocated image of tmp_data In either case you can safely call this function to delete either of those pointers, even if they bdb:refine_03::threed_00are NULL. More... | |
virtual void | normalize_threed (const bool sqrt_damp=false, const bool wiener=false) |
Normalize on the assumption that image is a Fourier volume and that tmp_data is a volume of weights corresponding in size to this Fourier volume. More... | |
virtual void | zero_memory () |
Sends the pixels in tmp_data and image to zero Convenience only. More... | |
Protected Attributes inherited from EMAN::FactoryBase | |
Dict | params |
This is the dictionary the stores the parameters of the object. More... | |
Protected Attributes inherited from EMAN::ReconstructorVolumeData | |
EMData * | image |
Inheriting class allocates this, probably in setup(). More... | |
EMData * | tmp_data |
Inheriting class may allocate this, probably in setup() More... | |
int | nx |
int | nx2 |
int | ny |
int | ny2 |
int | nz |
int | nz2 |
int | subnx |
int | subny |
int | subnz |
int | subx0 |
int | suby0 |
int | subz0 |
This class originally added for 2D experimentation and prototying.
It is basically a replica of the FourierReconstructor, but works in 2D
Definition at line 302 of file reconstructor.h.
|
inline |
|
inlinevirtual |
Definition at line 307 of file reconstructor.h.
|
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 301 of file reconstructor.cpp.
References EMAN::ReconstructorVolumeData::image, and EMAN::ReconstructorVolumeData::normalize_threed().
|
inlinevirtual |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 317 of file reconstructor.h.
|
inlinevirtual |
Get the unique name of this class (especially for factory based instantiation access)
Implements EMAN::FactoryBase.
Definition at line 315 of file reconstructor.h.
References NAME.
|
inlinevirtual |
Implements EMAN::FactoryBase.
Definition at line 325 of file reconstructor.h.
References EMAN::EMObject::INT, and EMAN::TypeDict::put().
|
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 184 of file reconstructor.cpp.
References EMAN::Util::agauss(), EMAN::Transform::get_rotation(), EMAN::EMConsts::I2G, EMAN::ReconstructorVolumeData::image, ImageDimensionException, ImageFormatException, NullPointerException, EMAN::ReconstructorVolumeData::nx, EMAN::ReconstructorVolumeData::ny, rdata, EMAN::ReconstructorVolumeData::tmp_data, and x.
|
inlinestatic |
Definition at line 319 of file reconstructor.h.
References FourierReconstructorSimple2D().
|
virtual |
Initialize the reconstructor.
Implements EMAN::Reconstructor.
Definition at line 163 of file reconstructor.cpp.
References EMAN::ReconstructorVolumeData::image, InvalidValueException, is_fftodd(), EMAN::ReconstructorVolumeData::nx, EMAN::ReconstructorVolumeData::ny, EMAN::FactoryBase::params, EMAN::Dict::set_default(), and EMAN::ReconstructorVolumeData::tmp_data.
|
static |
Definition at line 333 of file reconstructor.h.
Referenced by get_name().