#include <reconstructor.h>
Inheritance diagram for EMAN::FourierReconstructorSimple2D:
Public Member Functions | |
FourierReconstructorSimple2D () | |
virtual | ~FourierReconstructorSimple2D () |
virtual void | setup () |
Initialize the reconstructor. | |
virtual int | insert_slice (const EMData *const slice, const Transform &euler, const float weight=1.0) |
Insert an image slice to the reconstructor. | |
virtual EMData * | finish (bool doift=true) |
Finish reconstruction and return the complete model. | |
virtual string | get_name () const |
Get the unique name of this class (especially for factory based instantiation access). | |
virtual string | get_desc () const |
Get a clear, concise description of this class. | |
virtual TypeDict | get_param_types () const |
Static Public Member Functions | |
Reconstructor * | NEW () |
Static Public Attributes | |
const string | NAME = "fouriersimple2D" |
It is basically a replica of the FourierReconstructor, but works in 2D
Definition at line 282 of file reconstructor.h.
|
Definition at line 285 of file reconstructor.h. 00285 {}
|
|
Definition at line 287 of file reconstructor.h. 00287 { }
|
|
Finish reconstruction and return the complete model.
Reimplemented from EMAN::Reconstructor. Definition at line 244 of file reconstructor.cpp. References EMAN::EMData::depad(), EMAN::EMData::do_ift_inplace(), EMAN::ReconstructorVolumeData::normalize_threed(), and EMAN::EMData::process_inplace(). 00245 { 00246 normalize_threed(); 00247 00248 image->process_inplace("xform.fourierorigin.tocorner"); 00249 image->do_ift_inplace(); 00250 image->depad(); 00251 image->process_inplace("xform.phaseorigin.tocenter"); 00252 00253 EMData *ret = image; 00254 image = 0; 00255 return ret; 00256 }
|
|
Get a clear, concise description of this class.
Implements EMAN::FactoryBase. Definition at line 297 of file reconstructor.h. 00297 { return "performs 2D reconstruction"; }
|
|
Get the unique name of this class (especially for factory based instantiation access).
Implements EMAN::FactoryBase. Definition at line 295 of file reconstructor.h. 00295 { return NAME; }
|
|
Implements EMAN::FactoryBase. Definition at line 305 of file reconstructor.h. References EMAN::TypeDict::put(). 00306 { 00307 TypeDict d; 00308 d.put("nx", EMObject::INT, "Necessary. The x dimension of the input images."); 00309 // d.put("sym", EMObject::STRING, "Symmetry - assumed to be C1 if not specified"); 00310 return d; 00311 }
|
|
Insert an image slice to the reconstructor. To insert multiple image slices, call this function multiple times.
Reimplemented from EMAN::Reconstructor. |
|
Definition at line 299 of file reconstructor.h. 00300 { 00301 return new FourierReconstructorSimple2D(); 00302 }
|
|
Initialize the reconstructor.
Implements EMAN::Reconstructor. Definition at line 106 of file reconstructor.cpp. References InvalidValueException, is_fftodd(), EMAN::EMData::set_complex(), EMAN::Dict::set_default(), EMAN::EMData::set_fftodd(), EMAN::EMData::set_ri(), and EMAN::EMData::set_size(). 00107 { 00108 nx = params.set_default("nx",0); 00109 00110 if ( nx < 0 ) throw InvalidValueException(nx, "nx must be positive"); 00111 00112 bool is_fftodd = (nx % 2 == 1); 00113 00114 ny = nx; 00115 nx += 2-is_fftodd; 00116 00117 image = new EMData(); 00118 image->set_size(nx, ny); 00119 image->set_complex(true); 00120 image->set_fftodd(is_fftodd); 00121 image->set_ri(true); 00122 00123 tmp_data = new EMData(); 00124 tmp_data->set_size(nx/2, nx); 00125 }
|
|
Definition at line 79 of file reconstructor.cpp. |