Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

reconstructor.h File Reference

#include <fstream>
#include <boost/shared_ptr.hpp>
#include "emdata.h"
#include "exception.h"
#include "emobject.h"
#include "interp.h"
#include <utility>
#include "reconstructor_tools.h"

Include dependency graph for reconstructor.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  EMAN

Classes

class  EMAN::Reconstructor
 Reconstructor class defines a way to do 3D recontruction. More...
class  EMAN::ReconstructorVolumeData
 This is a Mixin class A class object encapsulating the volume data required by Reconstructors It basically stores two (pointers) to EMData objectsd stores the dimensions of the image volume. More...
class  EMAN::FourierReconstructorSimple2D
 This class originally added for 2D experimentation and prototying. More...
class  EMAN::FourierReconstructor
 Fourier space 3D reconstruction The Fourier reconstructor is designed to work in an iterative fashion, where similarity ("quality") metrics are used to determine if a slice should be inserted into the 3D in each subsequent iteration. More...
class  EMAN::WienerFourierReconstructor
 Fourier space 3D reconstruction This is a modified version of the normal FourierReconstructor which is aware of the SSNR information stored in individual class-average headers as "ctf_snr_total" and "ctf_wiener_filtered". More...
class  EMAN::BackProjectionReconstructor
 Real space 3D reconstruction using back projection. More...
class  EMAN::nn4Reconstructor
class  EMAN::nn4_rectReconstructor
 Direct Fourier inversion Reconstructor for extremly rectangular object. More...
class  EMAN::nnSSNR_Reconstructor
class  EMAN::nn4_ctfReconstructor
 nn4_ctf Direct Fourier Inversion Reconstructor More...
class  EMAN::nn4_ctf_rectReconstructor
 nn4_ctf_rectDirect Fourier Inversion Reconstructor More...
class  EMAN::nnSSNR_ctfReconstructor
struct  EMAN::point_t
class  EMAN::newfile_store
class  EMAN::file_store

Defines

#define eman_reconstructor_h__   1
 
Id
reconstructor.h,v 1.142 2011/02/14 22:22:32 john Exp


Functions

EMDatapadfft_slice (const EMData *const slice, const Transform &t, int npad)
 Direct Fourier inversion Reconstructor.
void dump_reconstructors ()
map< string, vector< string > > dump_reconstructors_list ()


Define Documentation

#define eman_reconstructor_h__   1
 

Id
reconstructor.h,v 1.142 2011/02/14 22:22:32 john Exp

Definition at line 37 of file reconstructor.h.


Function Documentation

void EMAN::dump_reconstructors  ) 
 

Definition at line 4139 of file reconstructor.cpp.

04140 {
04141         dump_factory < Reconstructor > ();
04142 }

map< string, vector< string > > EMAN::dump_reconstructors_list  ) 
 

Definition at line 4144 of file reconstructor.cpp.

04145 {
04146         return dump_factory_list < Reconstructor > ();
04147 }

EMData * EMAN::padfft_slice const EMData *const   slice,
const Transform t,
int  npad
 

Direct Fourier inversion Reconstructor.

Definition at line 1934 of file reconstructor.cpp.

References Assert, EMAN::EMData::average_circ_sub(), EMAN::EMData::center_origin_fft(), checked_delete(), EMAN::EMData::do_fft_inplace(), EMAN::EMData::get_attr_default(), EMAN::Transform::get_trans_2d(), EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::norm_pad(), nx, ny, EMAN::EMData::process_inplace(), EMAN::EMData::set_attr(), t, and EMAN::Vec2f.

Referenced by EMAN::file_store::add_image(), and EMAN::newfile_store::add_image().

01935 {
01936         int nx = slice->get_xsize();
01937         int ny = slice->get_ysize();
01938         int ndim = (ny==1) ? 1 : 2;
01939 
01940         if( ndim==2 && nx!=ny )
01941         {
01942                 // FIXME: What kind of exception should we throw here?
01943                 throw std::runtime_error("Tried to padfft a 2D slice which is not square.");
01944         }
01945 
01946         // process 2D slice or 1D line -- subtract the average outside of the circle, zero-pad, fft extend, and fft
01947         EMData* temp = slice->average_circ_sub();
01948 
01949         Assert( temp != NULL );
01950         EMData* zeropadded = temp->norm_pad( false, npad );
01951         Assert( zeropadded != NULL );
01952         checked_delete( temp );
01953 
01954         zeropadded->do_fft_inplace();
01955         EMData* padfftslice = zeropadded;
01956 
01957         // shift the projection
01958         Vec2f trans = t.get_trans_2d();
01959         float sx = -trans[0];
01960         float sy = -trans[1];
01961         if(sx != 0.0f || sy != 0.0)
01962                 padfftslice->process_inplace("filter.shift", Dict("x_shift", sx, "y_shift", sy, "z_shift", 0.0f));
01963 
01964         int remove = slice->get_attr_default("remove", 0);
01965         padfftslice->set_attr( "remove", remove );
01966 
01967 
01968 
01969         padfftslice->center_origin_fft();
01970         return padfftslice;
01971 }


Generated on Mon Mar 7 18:19:31 2011 for EMAN2 by  doxygen 1.3.9.1