EMAN2
|
Real space 3D reconstruction using per-voxel median. More...
#include <reconstructor.h>
Public Member Functions | |
RealMedianReconstructor () | |
virtual | ~RealMedianReconstructor () |
virtual void | setup () |
Initialize the reconstructor. 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... | |
virtual int | insert_slice (const EMData *const slice, const Transform &euler, const float weight) |
Insert an image slice to the reconstructor. More... | |
virtual int | determine_slice_agreement (EMData *slice, const Transform &euler, const float weight=1.0, bool sub=true) |
Dummy function which always returns the same values. 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... | |
int | insert_slice (const EMData *const slice, const Transform &euler) |
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 = "real_median" |
Private Member Functions | |
RealMedianReconstructor (const RealMedianReconstructor &that) | |
RealMedianReconstructor & | operator= (const RealMedianReconstructor &) |
Private Attributes | |
vector< EMData * > | slices |
vector< Transform > | xforms |
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 |
Real space 3D reconstruction using per-voxel median.
Real-space reconstruction similar to unfiltered back-projection, but computing the median rather than the mean value.
Definition at line 921 of file reconstructor.h.
|
inline |
|
inlinevirtual |
Definition at line 926 of file reconstructor.h.
|
private |
|
virtual |
Dummy function which always returns the same values.
input_slice | The EMData slice to be compared |
euler | The orientation of the slice as a Transform object |
weight | A weighting factor for this slice, generally the number of particles in a class-average. May be ignored by some reconstructors |
sub | Flag indicating whether to subtract the slice from the volume before comparing. 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 2569 of file reconstructor.cpp.
References NullPointerException.
|
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 2582 of file reconstructor.cpp.
References EMAN::Factory< T >::get(), EMAN::Symmetry3D::get_nsym(), EMAN::Symmetry3D::get_syms(), EMAN::ReconstructorVolumeData::image, EMAN::ReconstructorVolumeData::nx, EMAN::ReconstructorVolumeData::ny, EMAN::ReconstructorVolumeData::nz, EMAN::FactoryBase::params, EMAN::Dict::set_default(), slices, sqrt(), v0, x, xforms, and y.
|
inlinevirtual |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 968 of file reconstructor.h.
|
inlinevirtual |
Get the unique name of this class (especially for factory based instantiation access)
Implements EMAN::FactoryBase.
Definition at line 963 of file reconstructor.h.
References NAME.
|
inlinevirtual |
Implements EMAN::FactoryBase.
Definition at line 984 of file reconstructor.h.
References EMAN::EMObject::FLOAT, EMAN::EMObject::INT, EMAN::EMObject::INTARRAY, EMAN::TypeDict::put(), and EMAN::EMObject::STRING.
|
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 2550 of file reconstructor.cpp.
References LOGERR, EMAN::ReconstructorVolumeData::nx, slices, and xforms.
|
inlinestatic |
Definition at line 979 of file reconstructor.h.
References RealMedianReconstructor().
|
private |
|
virtual |
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.
The default operation just returns a copy of the image, as the preprocessing is reconstructor-specific.
slice | the slice to be prepocessed |
t | transform |
InvalidValueException | when the specified padding value is less than the size of the images |
Reimplemented from EMAN::Reconstructor.
Definition at line 2524 of file reconstructor.cpp.
|
virtual |
Initialize the reconstructor.
Implements EMAN::Reconstructor.
Definition at line 2508 of file reconstructor.cpp.
References EMAN::ReconstructorVolumeData::image, EMAN::ReconstructorVolumeData::nx, EMAN::ReconstructorVolumeData::ny, EMAN::ReconstructorVolumeData::nz, EMAN::FactoryBase::params, slices, and xforms.
|
static |
Definition at line 995 of file reconstructor.h.
Referenced by get_name().
|
private |
Definition at line 1003 of file reconstructor.h.
Referenced by finish(), insert_slice(), and setup().
|
private |
Definition at line 1004 of file reconstructor.h.
Referenced by finish(), insert_slice(), and setup().