#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 242 of file reconstructor.cpp. References EMAN::EMData::depad(), EMAN::EMData::do_ift_inplace(), EMAN::ReconstructorVolumeData::normalize_threed(), and EMAN::EMData::process_inplace(). 00243 {
00244 normalize_threed();
00245
00246 image->process_inplace("xform.fourierorigin.tocorner");
00247 image->do_ift_inplace();
00248 image->depad();
00249 image->process_inplace("xform.phaseorigin.tocenter");
00250
00251 EMData *ret = image;
00252 image = 0;
00253 return ret;
00254 }
|
|
|
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 104 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(). 00105 {
00106 nx = params.set_default("nx",0);
00107
00108 if ( nx < 0 ) throw InvalidValueException(nx, "nx must be positive");
00109
00110 bool is_fftodd = (nx % 2 == 1);
00111
00112 ny = nx;
00113 nx += 2-is_fftodd;
00114
00115 image = new EMData();
00116 image->set_size(nx, ny);
00117 image->set_complex(true);
00118 image->set_fftodd(is_fftodd);
00119 image->set_ri(true);
00120
00121 tmp_data = new EMData();
00122 tmp_data->set_size(nx/2, nx);
00123 }
|
|
|
Definition at line 78 of file reconstructor.cpp. |
1.3.9.1