#include <reconstructor_tools.h>
Inheritance diagram for EMAN::FourierInserter3DMode1:
Public Member Functions | |
FourierInserter3DMode1 () | |
virtual | ~FourierInserter3DMode1 () |
virtual bool | insert_pixel (const float &xx, const float &yy, const float &zz, const std::complex< float > dt, const float &weight=1.0) |
Insert a complex pixel [dt[0]+dt[1]i] at (float) coordinate [xx,yy,zz] with weighting into a discrete 3D volume. | |
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. | |
Static Public Member Functions | |
FourierPixelInserter3D * | NEW () |
Static Public Attributes | |
const string | NAME = "nearest_neighbor" |
Private Member Functions | |
FourierInserter3DMode1 (const FourierInserter3DMode1 &) | |
FourierInserter3DMode1 & | operator= (const FourierInserter3DMode1 &) |
Definition at line 158 of file reconstructor_tools.h.
|
Definition at line 161 of file reconstructor_tools.h. 00161 {}
|
|
Definition at line 162 of file reconstructor_tools.h. 00162 {}
|
|
|
|
Get a clear, concise description of this class.
Implements EMAN::FactoryBase. Definition at line 176 of file reconstructor_tools.h. 00177 { 00178 return "Fourier pixel insertion using nearest neighbor"; 00179 }
|
|
Get the unique name of this class (especially for factory based instantiation access).
Implements EMAN::FactoryBase. Definition at line 171 of file reconstructor_tools.h. 00172 {
00173 return NAME;
00174 }
|
|
Insert a complex pixel [dt[0]+dt[1]i] at (float) coordinate [xx,yy,zz] with weighting into a discrete 3D volume.
Implements EMAN::FourierPixelInserter3D. Definition at line 103 of file reconstructor_tools.cpp. References EMAN::EMData::add_complex_at(), dt, and weight. 00104 { 00105 int x0 = (int) floor(xx + 0.5f); 00106 int y0 = (int) floor(yy + 0.5f); 00107 int z0 = (int) floor(zz + 0.5f); 00108 00109 size_t off; 00110 if (subx0<0) off=data->add_complex_at(x0,y0,z0,dt*weight); 00111 else off=data->add_complex_at(x0,y0,z0,subx0,suby0,subz0,fullnx,fullny,fullnz,dt*weight); 00112 if (static_cast<int>(off)!=nxyz) norm[off/2]+=weight; 00113 else return false; 00114 00115 return true; 00116 }
|
|
Definition at line 166 of file reconstructor_tools.h. 00167 { 00168 return new FourierInserter3DMode1(); 00169 }
|
|
|
|
Definition at line 41 of file reconstructor_tools.cpp. |