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

EMAN::nn4_rectReconstructor Class Reference

Direct Fourier inversion Reconstructor for extremly rectangular object. More...

#include <reconstructor.h>

Inheritance diagram for EMAN::nn4_rectReconstructor:

Inheritance graph
[legend]
Collaboration diagram for EMAN::nn4_rectReconstructor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 nn4_rectReconstructor ()
 nn4_rectReconstructor (const string &symmetry, int size, int npad)
virtual ~nn4_rectReconstructor ()
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 EMDatafinish (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
void setup (const string &symmetry, int size, int npad)
int insert_padfft_slice (EMData *padded, const Transform &trans, int mult=1)

Static Public Member Functions

ReconstructorNEW ()

Static Public Attributes

const string NAME = "nn4_rect"

Private Member Functions

void buildFFTVolume ()
void buildNormVolume ()
void load_default_settings ()

Private Attributes

EMDatam_volume
EMDatam_wptr
EMDatam_result
bool m_delete_volume
bool m_delete_weight
string m_symmetry
int m_weighting
int m_vnx
int m_vny
int m_vnz
int m_npad
int m_nsym
int m_ndim
int m_vnzp
int m_vnyp
int m_vnxp
int m_vnzc
int m_vnyc
int m_vnxc
int m_count
float m_xratio
float m_yratio
float m_zratio
float m_xscale
float m_yscale
int m_sizeofprojection
float m_wghta
float m_wghtb
float m_osnr

Detailed Description

Direct Fourier inversion Reconstructor for extremly rectangular object.

Definition at line 812 of file reconstructor.h.


Constructor & Destructor Documentation

nn4_rectReconstructor::nn4_rectReconstructor  ) 
 

Definition at line 2297 of file reconstructor.cpp.

References m_result, m_volume, and m_wptr.

02298 {
02299         m_volume = NULL;
02300         m_wptr   = NULL;
02301         m_result = NULL;
02302 }

nn4_rectReconstructor::nn4_rectReconstructor const string &  symmetry,
int  size,
int  npad
 

Definition at line 2304 of file reconstructor.cpp.

References load_default_settings(), m_result, m_volume, m_wptr, EMAN::Reconstructor::print_params(), and setup().

02305 {
02306         m_volume = NULL;
02307         m_wptr   = NULL;
02308         m_result = NULL;
02309         setup( symmetry, size, npad );
02310         load_default_settings();
02311         print_params();
02312 }

nn4_rectReconstructor::~nn4_rectReconstructor  )  [virtual]
 

Definition at line 2314 of file reconstructor.cpp.

References checked_delete(), m_result, m_volume, and m_wptr.

02315 {
02316         if( m_delete_volume ) checked_delete(m_volume);
02317 
02318         if( m_delete_weight ) checked_delete( m_wptr );
02319 
02320         checked_delete( m_result );
02321 }


Member Function Documentation

void nn4_rectReconstructor::buildFFTVolume  )  [private]
 

Definition at line 2394 of file reconstructor.cpp.

References EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::get_zsize(), EMAN::Dict::has_key(), m_delete_volume, m_npad, m_vnxp, m_vnyp, m_vnzp, m_volume, EMAN::EMData::set_array_offsets(), EMAN::EMData::set_attr(), EMAN::EMData::set_complex(), EMAN::EMData::set_fftodd(), EMAN::EMData::set_fftpad(), EMAN::EMData::set_nxc(), EMAN::EMData::set_ri(), EMAN::EMData::set_size(), and EMAN::EMData::to_zero().

Referenced by setup().

02394                                            {
02395         int offset = 2 - m_vnxp%2;
02396 
02397         if( params.has_key("fftvol") ) {
02398                 m_volume = params["fftvol"];
02399                 m_delete_volume = false;
02400         } else {
02401                 m_volume = new EMData();
02402                 m_delete_volume = true;
02403         }
02404 
02405         if( m_volume->get_xsize() != m_vnxp+offset && m_volume->get_ysize() != m_vnyp && m_volume->get_zsize() != m_vnzp ) {
02406                 m_volume->set_size(m_vnxp+offset,m_vnyp,m_vnzp);
02407                 m_volume->to_zero();
02408         }
02409         // ----------------------------------------------------------------
02410         // Added by Zhengfan Yang on 03/15/07
02411         // Original author: please check whether my revision is correct and
02412         // other Reconstructor need similiar revision.
02413         if ( m_vnxp % 2 == 0 )  m_volume->set_fftodd(0);
02414         else                    m_volume->set_fftodd(1);
02415         // ----------------------------------------------------------------
02416 
02417         m_volume->set_nxc(m_vnxp/2);
02418         m_volume->set_complex(true);
02419         m_volume->set_ri(true);
02420         m_volume->set_fftpad(true);
02421         m_volume->set_attr("npad", m_npad);
02422         m_volume->set_array_offsets(0,1,1);
02423 }

void nn4_rectReconstructor::buildNormVolume  )  [private]
 

Definition at line 2425 of file reconstructor.cpp.

References EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::get_zsize(), EMAN::Dict::has_key(), m_delete_weight, m_vnxc, m_vnyp, m_vnzp, m_wptr, EMAN::EMData::set_array_offsets(), EMAN::EMData::set_size(), and EMAN::EMData::to_zero().

Referenced by setup().

02425                                             {
02426 
02427         if( params.has_key("weight") ) {
02428                 m_wptr = params["weight"];
02429                 m_delete_weight = false;
02430         } else {
02431                 m_wptr = new EMData();
02432                 m_delete_weight = true;
02433         }
02434 
02435         if( m_wptr->get_xsize() != m_vnxc+1 &&
02436                 m_wptr->get_ysize() != m_vnyp &&
02437                 m_wptr->get_zsize() != m_vnzp ) {
02438                 m_wptr->set_size(m_vnxc+1,m_vnyp,m_vnzp);
02439                 m_wptr->to_zero();
02440         }
02441 
02442         m_wptr->set_array_offsets(0,1,1);
02443 }

EMData * nn4_rectReconstructor::finish bool  doift = true  )  [virtual]
 

Finish reconstruction and return the complete model.

Parameters:
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
Returns:
The result 3D model.

Reimplemented from EMAN::Reconstructor.

Definition at line 2650 of file reconstructor.cpp.

References abs, circumf_rect(), EMAN::EMData::copy(), EMAN::EMData::depad(), EMAN::EMData::do_ift_inplace(), EMAN::EMData::get_attr(), m_ndim, m_result, m_vnyc, m_vnyp, m_volume, m_weighting, m_wghta, m_wptr, max, max2d(), max3d(), EMAN::EMData::set_array_offsets(), and EMAN::EMData::symplane0_rect().

02651 {
02652         
02653         if( m_ndim==3 ) {
02654                 m_volume->symplane0_rect(m_wptr);
02655         } else {
02656                 for( int i=1; i <= m_vnyp; ++i ) {
02657 
02658                         if( (*m_wptr)(0, i, 1)==0.0 ) {
02659                                 int j = m_vnyp + 1 - i;
02660                                 (*m_wptr)(0, i, 1) = (*m_wptr)(0, j, 1);
02661                                 (*m_volume)(0, i, 1) = (*m_volume)(0, j, 1);
02662                                 (*m_volume)(1, i, 1) = (*m_volume)(1, j, 1);
02663                         }
02664                 }
02665         }
02666 
02667 
02668         int box = 7;
02669         int kc = (box-1)/2;
02670         vector< float > pow_a( m_ndim*kc+1, 1.0 );
02671         for( unsigned int i=1; i < pow_a.size(); ++i ) pow_a[i] = pow_a[i-1] * exp(m_wghta);
02672         pow_a.back()=0.0;
02673 
02674         float alpha = 0.0;
02675         if( m_ndim==3) {
02676                 int vol = box*box*box;
02677                 float max = max3d( kc, pow_a );
02678                 alpha = ( 1.0f - 1.0f/(float)vol ) / max;
02679         } else {
02680                 int ara = box*box;
02681                 float max = max2d( kc, pow_a );
02682                 alpha = ( 1.0f - 1.0f/(float)ara ) / max;
02683         }
02684 
02685         int ix,iy,iz;
02686         for (iz = 1; iz <= m_vnzp; iz++) {
02687                 for (iy = 1; iy <= m_vnyp; iy++) {
02688                         for (ix = 0; ix <= m_vnxc; ix++) {
02689                                 if ( (*m_wptr)(ix,iy,iz) > 0) {//(*v) should be treated as complex!!
02690                                         float tmp;
02691                                         tmp = (-2*((ix+iy+iz)%2)+1)/((*m_wptr)(ix,iy,iz)+m_osnr);
02692                                         
02693                                         if( m_weighting == ESTIMATE ) {
02694                                                 int cx = ix;
02695                                                 int cy = (iy<=m_vnyc) ? iy - 1 : iy - 1 - m_vnyp;
02696                                                 int cz = (iz<=m_vnzc) ? iz - 1 : iz - 1 - m_vnzp;
02697                                                 float sum = 0.0;
02698                                                 for( int ii = -kc; ii <= kc; ++ii ) {
02699                                                         int nbrcx = cx + ii;
02700                                                         if( nbrcx >= m_vnxc ) continue;
02701                                                         for( int jj= -kc; jj <= kc; ++jj ) {
02702                                                                 int nbrcy = cy + jj;
02703                                                                 if( nbrcy <= -m_vnyc || nbrcy >= m_vnyc ) continue;
02704 
02705                                                                 int kcz = (m_ndim==3) ? kc : 0;
02706                                                                 for( int kk = -kcz; kk <= kcz; ++kk ) {
02707                                                                         int nbrcz = cz + kk;
02708                                                                         if( nbrcz <= -m_vnyc || nbrcz >= m_vnyc ) continue;
02709                                                                         if( nbrcx < 0 ) {
02710                                                                                 nbrcx = -nbrcx;
02711                                                                                 nbrcy = -nbrcy;
02712                                                                                 nbrcz = -nbrcz;
02713                                                                         }
02714                                                                         int nbrix = nbrcx;
02715                                                                         int nbriy = nbrcy >= 0 ? nbrcy + 1 : nbrcy + 1 + m_vnyp;
02716                                                                         int nbriz = nbrcz >= 0 ? nbrcz + 1 : nbrcz + 1 + m_vnzp;
02717                                                                         if( (*m_wptr)( nbrix, nbriy, nbriz ) == 0 ) {
02718                                                                                 int c = m_ndim*kc+1 - std::abs(ii) - std::abs(jj) - std::abs(kk);
02719                                                                                 sum = sum + pow_a[c];
02720                                                                         }
02721                                                                 }
02722                                                         }
02723                                                 }
02724                                                 float wght = 1.0f / ( 1.0f - alpha * sum );
02725                                                 tmp = tmp * wght;
02726                                         }
02727                                         (*m_volume)(2*ix,iy,iz)   *= tmp;
02728                                         (*m_volume)(2*ix+1,iy,iz) *= tmp;
02729                                 }
02730                         }
02731                 }
02732         }
02733 
02734         //if(m_ndim==2) printImage( m_volume );
02735 
02736         // back fft
02737         m_volume->do_ift_inplace();
02738 
02739         
02740         int npad = m_volume->get_attr("npad");
02741         m_volume->depad();
02742         circumf_rect( m_volume, npad );
02743         //circumf_rect_new( m_volume, npad,m_xratio,m_yratio);
02744         m_volume->set_array_offsets( 0, 0, 0 );
02745 
02746         m_result = m_volume->copy();
02747         return m_result;
02748 }

virtual string EMAN::nn4_rectReconstructor::get_desc  )  const [inline, virtual]
 

Get a clear, concise description of this class.

Returns:
a clear, concise description of this class

Implements EMAN::FactoryBase.

Definition at line 840 of file reconstructor.h.

00841                 {
00842                         return "Direct Fourier inversion routine";
00843                 }

virtual string EMAN::nn4_rectReconstructor::get_name  )  const [inline, virtual]
 

Get the unique name of this class (especially for factory based instantiation access).

Returns:
the unique name of this class

Implements EMAN::FactoryBase.

Definition at line 835 of file reconstructor.h.

00836                 {
00837                         return NAME;
00838                 }

virtual TypeDict EMAN::nn4_rectReconstructor::get_param_types  )  const [inline, virtual]
 

Returns:
a TypeDict defining and describing the feasible parameters of this class

Implements EMAN::FactoryBase.

Definition at line 850 of file reconstructor.h.

References EMAN::TypeDict::put().

00851                 {
00852                         TypeDict d;
00853                         d.put("sizeprojection", EMObject::INT);
00854                         d.put("sizex",          EMObject::INT);
00855                         d.put("sizey",          EMObject::INT);
00856                         d.put("sizez",          EMObject::INT);
00857                         d.put("xratio",         EMObject::FLOAT);
00858                         d.put("yratio",         EMObject::FLOAT);
00859                         d.put("npad",           EMObject::INT);
00860                         d.put("sign",           EMObject::INT);
00861                         d.put("ndim",           EMObject::INT);
00862                         d.put("snr",            EMObject::FLOAT);
00863                         d.put("symmetry",       EMObject::STRING);
00864                         d.put("snr",            EMObject::FLOAT);
00865                         d.put("fftvol",         EMObject::EMDATA);
00866                         d.put("weight",         EMObject::EMDATA);
00867                         d.put("weighting",      EMObject::INT);
00868                         return d;
00869                 }

int nn4_rectReconstructor::insert_padfft_slice EMData padded,
const Transform trans,
int  mult = 1
 

Definition at line 2554 of file reconstructor.cpp.

References Assert, EMAN::Transform::get_sym(), EMAN::EMData::insert_rect_slice(), m_npad, m_sizeofprojection, m_symmetry, m_volume, m_wptr, m_xratio, m_yratio, mult(), and t.

Referenced by insert_slice().

02555 {
02556         Assert( padfft != NULL );
02557         
02558 
02559         for( int isym=0; isym < m_nsym; isym++) {
02560                 Transform tsym = t.get_sym( m_symmetry, isym );
02561                  m_volume->insert_rect_slice(m_wptr, padded, t, m_sizeofprojection, m_xratio, m_yratio, m_npad, mult);
02562                 }
02563 
02564         return 0;
02565 
02566 }

int nn4_rectReconstructor::insert_slice const EMData *const   slice,
const Transform euler,
const float  weight = 1.0
[virtual]
 

Insert an image slice to the reconstructor.

To insert multiple image slices, call this function multiple times.

Parameters:
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
Returns:
0 if OK. 1 if error.

Reimplemented from EMAN::Reconstructor.

Definition at line 2447 of file reconstructor.cpp.

References Assert, checked_delete(), EMAN::EMObject::f, EMAN::EMData::get_attr(), EMAN::EMData::get_attr_default(), EMAN::EMData::get_value_at(), EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), insert_padfft_slice(), LOGERR, m_count, m_ndim, m_npad, m_sizeofprojection, m_vnxp, m_vnyp, m_volume, m_xratio, m_yratio, mult(), EMAN::padfft_slice(), sqrt(), and t.

02447                                                                                                          {
02448         // sanity checks
02449 
02450 
02451         //m_count=m_count+1;
02452         if (!slice) {
02453                 LOGERR("try to insert NULL slice");
02454                 return 1;
02455         }
02456 
02457         int padffted= slice->get_attr_default( "padffted", 0 );
02458         if( m_ndim==3 ) {
02459                 if ( padffted==0 && (slice->get_xsize()!=slice->get_ysize() || slice->get_xsize()!=m_sizeofprojection)  ) {
02460                         
02461                         // FIXME: Why doesn't this throw an exception?
02462                         LOGERR("Tried to insert a slice that is the wrong size.");
02463                         return 1;
02464                 }
02465         } 
02466        if (m_ndim==2) {
02467                 Assert( m_ndim==2 );
02468                 if( slice->get_ysize() !=1 ) {
02469                         LOGERR( "for 2D reconstruction, a line is excepted" );
02470                         return 1;
02471                 }
02472         }
02473 
02474         EMData* padfft = NULL;
02475 
02476         if( padffted != 0 ) padfft = new EMData(*slice);
02477         else                padfft = padfft_slice( slice, t,  m_npad );
02478 
02479         int mult= slice->get_attr_default( "mult", 1 );
02480         Assert( mult > 0 );
02481 
02482         if( m_ndim==3 ) {
02483                 insert_padfft_slice( padfft, t, mult );         
02484                 
02485         } else {
02486                 float ellipse_length,ellipse_step,cos_alpha,sin_alpha;
02487                 int ellipse_length_int;
02488                 float alpha = padfft->get_attr( "alpha" );
02489                 alpha = alpha/180.0f*M_PI;
02490                 int loop_range;
02491                 float temp1,temp2;
02492                 temp1=m_xratio*cos(alpha)*float(m_sizeofprojection*m_npad)/2;
02493                 temp2=m_yratio*sin(alpha)*float(m_sizeofprojection*m_npad)/2;
02494                 ellipse_length=sqrt(temp1*temp1+temp2*temp2);
02495                 ellipse_length_int=int(ellipse_length);
02496                 ellipse_step=0.5*(m_sizeofprojection*m_npad)/float(ellipse_length_int);
02497                 loop_range=ellipse_length_int;
02498                 cos_alpha=temp1/ellipse_length;
02499                 sin_alpha=temp2/ellipse_length;
02500                 if(m_count%100==0)
02501                 {
02502                         std::cout<<"#############################################################"<<std::endl;
02503                         std::cout<<"line insert start=="<<m_count<<std::endl;
02504                         std::cout<<"ellipse lenth=="<<ellipse_length_int<<"ellips step=="<<ellipse_step<<std::endl;
02505                         std::cout<<"loop_range"<<loop_range<<std::endl;
02506                         std::cout<<"x and y ratio=="<<m_xratio<<"  "<<m_yratio<<std::endl;
02507                         std::cout<<"cos sin of alpha=="<<cos(alpha)<<"   "<<sin(alpha)<<std::endl;
02508                         std::cout<<"cos sin of alpha_new==="<<cos_alpha<<sin_alpha<<std::endl;
02509                         std::cout<<"alpah dig==="<<cos_alpha<<sin_alpha<<std::endl;
02510                         std::cout<<"prjection maximum==="<<loop_range*ellipse_step<<"ideal maximum"<<m_sizeofprojection*m_npad/2<<std::endl;
02511                         std::cout<<"x_size=="<<m_volume->get_xsize()<<"y_size=="<<m_volume->get_ysize()<<std::endl;
02512                         std::cout<<"#############################################################"<<std::endl;
02513 
02514 
02515                         
02516 
02517                 }
02518                 for(int i=0; i <=loop_range; ++i ) {
02519                         float xnew = i*cos_alpha;
02520                         float ynew = -i*sin_alpha;
02521                         if(m_count%100==0&&i==loop_range)
02522                                 std::cout<<"x_new=="<<xnew<<"Y_new=="<<ynew<<std::endl;
02523                         float btqr=0,btqi=0;
02524                         float xprj=i*ellipse_step;
02525                         float t=xprj-int(xprj);
02526                         btqr = (1-t)*padfft->get_value_at( 2*int(xprj), 0, 0 )+t*padfft->get_value_at( 2*(1+int(xprj)), 0, 0 );
02527                         btqi = (1-t)*padfft->get_value_at( 2*int(xprj)+1, 0, 0 )+t*padfft->get_value_at( 2*(1+int(xprj))+1, 0, 0 );
02528                         if( xnew < 0.0 ) {
02529                                 xnew *= -1;
02530                                 ynew *= -1;
02531                                 btqi *= -1;
02532                         }
02533 
02534                         int ixn = int(xnew+0.5+m_vnxp) - m_vnxp;
02535                         int iyn = int(ynew+0.5+m_vnyp) - m_vnyp;
02536 
02537                         if(iyn < 0 ) iyn += m_vnyp;
02538                         if(m_count%100==0&&i==loop_range)
02539                                 std::cout<<"xnn=="<<ixn<<"ynn=="<<iyn<<std::endl;
02540                         (*m_volume)( 2*ixn, iyn+1, 1 ) += btqr *float(mult);
02541                         (*m_volume)( 2*ixn+1, iyn+1, 1 ) += btqi * float(mult);
02542                         (*m_wptr)(ixn,iyn+1, 1) += float(mult);
02543                 }
02544 
02545 
02546         }
02547         checked_delete( padfft );
02548         return 0;
02549 }

void EMAN::nn4_rectReconstructor::load_default_settings  )  [inline, private]
 

Definition at line 900 of file reconstructor.h.

Referenced by nn4_rectReconstructor().

00901                 {
00902                         //params["use_weights"] = false;
00903                 }

Reconstructor* EMAN::nn4_rectReconstructor::NEW  )  [inline, static]
 

Definition at line 845 of file reconstructor.h.

00846                 {
00847                         return new nn4_rectReconstructor();
00848                 }

void nn4_rectReconstructor::setup const string &  symmetry,
int  size,
int  npad
 

Definition at line 2343 of file reconstructor.cpp.

References buildFFTVolume(), buildNormVolume(), EMAN::Transform::get_nsym(), EMAN::Dict::has_key(), m_ndim, m_npad, m_nsym, m_symmetry, m_vnx, m_vnxc, m_vnxp, m_vny, m_vnyc, m_vnyp, m_vnz, m_vnzc, m_vnzp, m_weighting, m_wghta, m_xratio, and m_yratio.

02344 {
02345         m_weighting = ESTIMATE;
02346         m_wghta = 0.2f;
02347         m_symmetry = symmetry;
02348         m_npad = npad;
02349         m_nsym = Transform::get_nsym(m_symmetry);
02350 
02351         if( params.has_key("sizex") )  m_vnx = params["sizex"];
02352         else if(params.has_key("xratio")) 
02353                 {
02354                 float temp=params["xratio"];
02355                 m_vnx=int(float(sizeprojection)*temp);
02356                 }
02357         else                           m_vnx=sizeprojection;
02358 
02359         if( params.has_key("sizey") )  m_vny = params["sizey"];
02360         else if (params.has_key("yratio"))  
02361                {
02362                 float temp=params["yratio"];
02363                  m_vny=int(float(sizeprojection)*temp);
02364                 }
02365         else m_vny=sizeprojection;
02366 
02367         if( params.has_key("sizez") ) 
02368                 m_vnz = params["sizez"];
02369         else                          
02370                 m_vnz = (m_ndim==3) ? sizeprojection : 1;
02371         
02372         m_xratio=float(m_vnx)/float(sizeprojection);    
02373         m_yratio=float(m_vny)/float(sizeprojection);
02374 
02375         //std::cout<<"dim==="<<m_ndim<<"xratio=="<<m_xratio<<"yratio=="<<m_yratio<<std::endl;
02376         //std::cout<<"sx=="<<m_vnx<<"sy=="<<m_vny<<"sz=="<<m_vnz<<std::endl;
02377         
02378 
02379         m_vnxp = m_vnx*npad;
02380         m_vnyp = m_vny*npad;
02381         m_vnzp = (m_ndim==3) ? m_vnz*npad : 1;
02382 
02383         m_vnxc = m_vnxp/2;
02384         m_vnyc = m_vnyp/2;
02385         m_vnzc = (m_ndim==3) ? m_vnzp/2 : 1;
02386 
02387         buildFFTVolume();
02388         buildNormVolume();
02389 
02390 
02391 }

void nn4_rectReconstructor::setup  )  [virtual]
 

Initialize the reconstructor.

Implements EMAN::Reconstructor.

Definition at line 2324 of file reconstructor.cpp.

References EMAN::Dict::has_key(), m_count, m_ndim, m_osnr, and m_sizeofprojection.

Referenced by nn4_rectReconstructor().

02325 {
02326         m_sizeofprojection = params["sizeprojection"];
02327         int npad = params["npad"];
02328         m_count=0;
02329 
02330         string symmetry;
02331         if( params.has_key("symmetry") )  symmetry = params["symmetry"].to_str();
02332         else                               symmetry = "c1";
02333 
02334         if( params.has_key("ndim") )  m_ndim = params["ndim"];             
02335         else                            m_ndim = 3;
02336     
02337         if( params.has_key( "snr" ) )  m_osnr = 1.0f/float( params["snr"] );
02338         else                           m_osnr = 0.0;
02339 
02340         setup( symmetry, m_sizeofprojection, npad );
02341 }


Member Data Documentation

int EMAN::nn4_rectReconstructor::m_count [private]
 

Definition at line 891 of file reconstructor.h.

Referenced by insert_slice(), and setup().

bool EMAN::nn4_rectReconstructor::m_delete_volume [private]
 

Definition at line 881 of file reconstructor.h.

Referenced by buildFFTVolume().

bool EMAN::nn4_rectReconstructor::m_delete_weight [private]
 

Definition at line 882 of file reconstructor.h.

Referenced by buildNormVolume().

int EMAN::nn4_rectReconstructor::m_ndim [private]
 

Definition at line 888 of file reconstructor.h.

Referenced by finish(), insert_slice(), and setup().

int EMAN::nn4_rectReconstructor::m_npad [private]
 

Definition at line 886 of file reconstructor.h.

Referenced by buildFFTVolume(), insert_padfft_slice(), insert_slice(), and setup().

int EMAN::nn4_rectReconstructor::m_nsym [private]
 

Definition at line 887 of file reconstructor.h.

Referenced by setup().

float EMAN::nn4_rectReconstructor::m_osnr [private]
 

Definition at line 899 of file reconstructor.h.

Referenced by setup().

EMData* EMAN::nn4_rectReconstructor::m_result [private]
 

Definition at line 880 of file reconstructor.h.

Referenced by finish(), nn4_rectReconstructor(), and ~nn4_rectReconstructor().

int EMAN::nn4_rectReconstructor::m_sizeofprojection [private]
 

Definition at line 894 of file reconstructor.h.

Referenced by insert_padfft_slice(), insert_slice(), and setup().

string EMAN::nn4_rectReconstructor::m_symmetry [private]
 

Definition at line 883 of file reconstructor.h.

Referenced by insert_padfft_slice(), and setup().

int EMAN::nn4_rectReconstructor::m_vnx [private]
 

Definition at line 885 of file reconstructor.h.

Referenced by setup().

int EMAN::nn4_rectReconstructor::m_vnxc [private]
 

Definition at line 890 of file reconstructor.h.

Referenced by buildNormVolume(), and setup().

int EMAN::nn4_rectReconstructor::m_vnxp [private]
 

Definition at line 889 of file reconstructor.h.

Referenced by buildFFTVolume(), insert_slice(), and setup().

int EMAN::nn4_rectReconstructor::m_vny [private]
 

Definition at line 885 of file reconstructor.h.

Referenced by setup().

int EMAN::nn4_rectReconstructor::m_vnyc [private]
 

Definition at line 890 of file reconstructor.h.

Referenced by finish(), and setup().

int EMAN::nn4_rectReconstructor::m_vnyp [private]
 

Definition at line 889 of file reconstructor.h.

Referenced by buildFFTVolume(), buildNormVolume(), finish(), insert_slice(), and setup().

int EMAN::nn4_rectReconstructor::m_vnz [private]
 

Definition at line 885 of file reconstructor.h.

Referenced by setup().

int EMAN::nn4_rectReconstructor::m_vnzc [private]
 

Definition at line 890 of file reconstructor.h.

Referenced by setup().

int EMAN::nn4_rectReconstructor::m_vnzp [private]
 

Definition at line 889 of file reconstructor.h.

Referenced by buildFFTVolume(), buildNormVolume(), and setup().

EMData* EMAN::nn4_rectReconstructor::m_volume [private]
 

Definition at line 878 of file reconstructor.h.

Referenced by buildFFTVolume(), finish(), insert_padfft_slice(), insert_slice(), nn4_rectReconstructor(), and ~nn4_rectReconstructor().

int EMAN::nn4_rectReconstructor::m_weighting [private]
 

Definition at line 884 of file reconstructor.h.

Referenced by finish(), and setup().

float EMAN::nn4_rectReconstructor::m_wghta [private]
 

Definition at line 897 of file reconstructor.h.

Referenced by finish(), and setup().

float EMAN::nn4_rectReconstructor::m_wghtb [private]
 

Definition at line 898 of file reconstructor.h.

EMData* EMAN::nn4_rectReconstructor::m_wptr [private]
 

Definition at line 879 of file reconstructor.h.

Referenced by buildNormVolume(), finish(), insert_padfft_slice(), nn4_rectReconstructor(), and ~nn4_rectReconstructor().

float EMAN::nn4_rectReconstructor::m_xratio [private]
 

Definition at line 892 of file reconstructor.h.

Referenced by insert_padfft_slice(), insert_slice(), and setup().

float EMAN::nn4_rectReconstructor::m_xscale [private]
 

Definition at line 893 of file reconstructor.h.

float EMAN::nn4_rectReconstructor::m_yratio [private]
 

Definition at line 892 of file reconstructor.h.

Referenced by insert_padfft_slice(), insert_slice(), and setup().

float EMAN::nn4_rectReconstructor::m_yscale [private]
 

Definition at line 893 of file reconstructor.h.

float EMAN::nn4_rectReconstructor::m_zratio [private]
 

Definition at line 892 of file reconstructor.h.

const string nn4_rectReconstructor::NAME = "nn4_rect" [static]
 

Definition at line 78 of file reconstructor.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 13:48:35 2010 for EMAN2 by  doxygen 1.3.9.1