#include <reconstructor.h>
Inheritance diagram for EMAN::nn4_ctf_rectReconstructor:
Public Member Functions | |
nn4_ctf_rectReconstructor () | |
nn4_ctf_rectReconstructor (const string &symmetry, int size, int npad, float snr, int sign) | |
virtual | ~nn4_ctf_rectReconstructor () |
virtual void | setup () |
Initialize the reconstructor. | |
virtual int | insert_slice (const EMData *const slice, const Transform &euler, const float weight=1.0) |
Insert a slice into a 3D volume, in a given orientation. | |
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. | |
TypeDict | get_param_types () const |
void | setup (const string &symmetry, int size, int npad, float snr, int sign) |
int | insert_padfft_slice (EMData *padfft, const Transform &trans, int mult=1) |
int | insert_buffed_slice (const EMData *buffer, int mult) |
Static Public Member Functions | |
static Reconstructor * | NEW () |
Static Public Attributes | |
static const string | NAME = "nn4_ctf_rect" |
Private Member Functions | |
void | buildFFTVolume () |
void | buildNormVolume () |
Private Attributes | |
EMData * | m_volume |
EMData * | m_wptr |
int | m_vnx |
int | m_vny |
int | m_vnz |
int | m_vnzp |
int | m_vnyp |
int | m_vnxp |
int | m_vnxc |
int | m_vnyc |
int | m_vnzc |
int | m_count |
float | m_xratio |
float | m_yratio |
float | m_zratio |
float | m_xscale |
float | m_yscale |
int | m_sizeofprojection |
int | m_npad |
int | m_sign |
int | m_varsnr |
int | m_weighting |
float | m_wghta |
float | m_wghtb |
float | m_snr |
string | m_symmetry |
int | m_nsym |
Definition at line 1084 of file reconstructor.h.
nn4_ctf_rectReconstructor::nn4_ctf_rectReconstructor | ( | ) |
nn4_ctf_rectReconstructor::nn4_ctf_rectReconstructor | ( | const string & | symmetry, | |
int | size, | |||
int | npad, | |||
float | snr, | |||
int | sign | |||
) |
nn4_ctf_rectReconstructor::~nn4_ctf_rectReconstructor | ( | ) | [virtual] |
Definition at line 3435 of file reconstructor.cpp.
03436 { 03437 //if( m_delete_volume ) checked_delete(m_volume); 03438 03439 //if( m_delete_weight ) checked_delete( m_wptr ); 03440 03441 //checked_delete( m_result ); 03442 }
void nn4_ctf_rectReconstructor::buildFFTVolume | ( | ) | [private] |
Definition at line 3513 of file reconstructor.cpp.
References EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::get_zsize(), m_npad, m_vnxp, m_vnyp, m_vnzp, m_volume, EMAN::FactoryBase::params, EMAN::EMData::set_array_offsets(), EMAN::EMData::set_attr(), EMAN::EMData::set_complex(), EMAN::EMData::set_fftpad(), EMAN::EMData::set_nxc(), EMAN::EMData::set_ri(), EMAN::EMData::set_size(), and EMAN::EMData::to_zero().
Referenced by setup().
03513 { 03514 int offset = 2 - m_vnxp%2; 03515 03516 m_volume = params["fftvol"]; 03517 03518 if( m_volume->get_xsize() != m_vnxp+offset && m_volume->get_ysize() != m_vnyp && m_volume->get_zsize() != m_vnzp ) { 03519 m_volume->set_size(m_vnxp+offset,m_vnyp,m_vnzp); 03520 m_volume->to_zero(); 03521 } 03522 03523 m_volume->set_nxc(m_vnxp/2); 03524 m_volume->set_complex(true); 03525 m_volume->set_ri(true); 03526 m_volume->set_fftpad(true); 03527 m_volume->set_attr("npad", m_npad); 03528 m_volume->set_array_offsets(0,1,1); 03529 }
void nn4_ctf_rectReconstructor::buildNormVolume | ( | ) | [private] |
Definition at line 3531 of file reconstructor.cpp.
References EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::get_zsize(), m_vnxc, m_vnyp, m_vnzp, m_wptr, EMAN::FactoryBase::params, EMAN::EMData::set_array_offsets(), EMAN::EMData::set_size(), and EMAN::EMData::to_zero().
Referenced by setup().
03532 { 03533 m_wptr = params["weight"]; 03534 03535 if( m_wptr->get_xsize() != m_vnxc+1 && m_wptr->get_ysize() != m_vnyp && m_wptr->get_zsize() != m_vnzp ) { 03536 m_wptr->set_size(m_vnxc+1,m_vnyp,m_vnzp); 03537 m_wptr->to_zero(); 03538 } 03539 03540 m_wptr->set_array_offsets(0,1,1); 03541 03542 }
EMData * nn4_ctf_rectReconstructor::finish | ( | bool | doift = true |
) | [virtual] |
Finish reconstruction and return the complete model.
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 |
Reimplemented from EMAN::Reconstructor.
Definition at line 3626 of file reconstructor.cpp.
References abs, circumf_rect(), EMAN::EMData::depad(), EMAN::EMData::do_ift_inplace(), ESTIMATE, EMAN::EMData::get_attr(), m_sign, m_snr, m_varsnr, m_vnxc, m_vnyc, m_vnyp, m_vnzc, m_vnzp, m_volume, m_weighting, m_wghta, m_wptr, m_xratio, m_yratio, m_zratio, max, max3d(), EMAN::EMData::set_array_offsets(), sqrt(), and EMAN::EMData::symplane0_rect().
03627 { 03628 m_volume->set_array_offsets(0, 1, 1); 03629 m_wptr->set_array_offsets(0, 1, 1); 03630 m_volume->symplane0_rect(m_wptr); 03631 03632 int box = 7; 03633 int vol = box*box*box; 03634 int kc = (box-1)/2; 03635 vector< float > pow_a( 3*kc+1, 1.0 ); 03636 for( unsigned int i=1; i < pow_a.size(); ++i ) pow_a[i] = pow_a[i-1] * exp(m_wghta); 03637 pow_a[3*kc]=0.0; 03638 03639 03640 float max = max3d( kc, pow_a ); 03641 float alpha = ( 1.0f - 1.0f/(float)vol ) / max; 03642 float osnr = 1.0f/m_snr; 03643 03644 // normalize 03645 int ix,iy,iz; 03646 for (iz = 1; iz <= m_vnzp; iz++) { 03647 for (iy = 1; iy <= m_vnyp; iy++) { 03648 for (ix = 0; ix <= m_vnxc; ix++) { 03649 if ( (*m_wptr)(ix,iy,iz) > 0.0f) {//(*v) should be treated as complex!! 03650 int iyp = (iy<=m_vnyc) ? iy - 1 : iy-m_vnyp-1; 03651 int izp = (iz<=m_vnzc) ? iz - 1 : iz-m_vnzp-1; 03652 float tmp=0.0; 03653 if( m_varsnr ) 03654 { 03655 float freq = sqrt( (float)(ix*ix/(m_xratio*m_xratio)+iyp*iyp/(m_zratio*m_yratio)+izp*izp) ); 03656 tmp = (-2*((ix+iy+iz)%2)+1)/((*m_wptr)(ix,iy,iz)+freq*osnr)*m_sign; 03657 } 03658 else 03659 { 03660 tmp = (-2*((ix+iy+iz)%2)+1)/((*m_wptr)(ix,iy,iz)+osnr)*m_sign; 03661 } 03662 03663 if( m_weighting == ESTIMATE ) { 03664 int cx = ix; 03665 int cy = (iy<=m_vnyc) ? iy - 1 : iy - 1 - m_vnyp; 03666 int cz = (iz<=m_vnzc) ? iz - 1 : iz - 1 - m_vnzp; 03667 float sum = 0.0; 03668 for( int ii = -kc; ii <= kc; ++ii ) { 03669 int nbrcx = cx + ii; 03670 if( nbrcx >= m_vnxc ) continue; 03671 for( int jj= -kc; jj <= kc; ++jj ) { 03672 int nbrcy = cy + jj; 03673 if( nbrcy <= -m_vnyc || nbrcy >= m_vnyc ) continue; 03674 for( int kk = -kc; kk <= kc; ++kk ) { 03675 int nbrcz = cz + jj; 03676 if( nbrcz <= -m_vnyc || nbrcz >= m_vnyc ) continue; 03677 if( nbrcx < 0 ) { 03678 nbrcx = -nbrcx; 03679 nbrcy = -nbrcy; 03680 nbrcz = -nbrcz; 03681 } 03682 03683 int nbrix = nbrcx; 03684 int nbriy = nbrcy >= 0 ? nbrcy + 1 : nbrcy + 1 + m_vnyp; 03685 int nbriz = nbrcz >= 0 ? nbrcz + 1 : nbrcz + 1 + m_vnzp; 03686 if( (*m_wptr)( nbrix, nbriy, nbriz ) == 0.0 ) { 03687 int c = 3*kc+1 - std::abs(ii) - std::abs(jj) - std::abs(kk); 03688 sum = sum + pow_a[c]; 03689 // if(ix%20==0 && iy%20==0 && iz%20==0) 03690 // std::cout << boost::format( "%4d %4d %4d %4d %10.3f" ) % nbrix % nbriy % nbriz % c % sum << std::endl; 03691 } 03692 } 03693 } 03694 } 03695 float wght = 1.0f / ( 1.0f - alpha * sum ); 03696 /* 03697 if(ix%10==0 && iy%10==0) 03698 { 03699 std::cout << boost::format( "%4d %4d %4d " ) % ix % iy %iz; 03700 std::cout << boost::format( "%10.3f %10.3f %10.3f " ) % tmp % wght % sum; 03701 std:: << boost::format( "%10.3f %10.3e " ) % pow_b[r] % alpha; 03702 std::cout << std::endl; 03703 } 03704 */ 03705 tmp = tmp * wght; 03706 } 03707 (*m_volume)(2*ix,iy,iz) *= tmp; 03708 (*m_volume)(2*ix+1,iy,iz) *= tmp; 03709 } 03710 } 03711 } 03712 } 03713 03714 // back fft 03715 m_volume->do_ift_inplace(); 03716 int npad = m_volume->get_attr("npad"); 03717 m_volume->depad(); 03718 circumf_rect( m_volume, npad ); 03719 m_volume->set_array_offsets( 0, 0, 0 ); 03720 return 0; 03721 }
virtual string EMAN::nn4_ctf_rectReconstructor::get_desc | ( | ) | const [inline, virtual] |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 1113 of file reconstructor.h.
virtual string EMAN::nn4_ctf_rectReconstructor::get_name | ( | ) | const [inline, virtual] |
Get the unique name of this class (especially for factory based instantiation access).
Implements EMAN::FactoryBase.
Definition at line 1108 of file reconstructor.h.
References NAME.
01109 { 01110 return NAME; 01111 }
TypeDict EMAN::nn4_ctf_rectReconstructor::get_param_types | ( | ) | const [inline, virtual] |
Implements EMAN::FactoryBase.
Definition at line 1124 of file reconstructor.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::FLOAT, EMAN::EMObject::INT, EMAN::TypeDict::put(), and EMAN::EMObject::STRING.
01125 { 01126 TypeDict d; 01127 d.put("sizeprojection", EMObject::INT); 01128 d.put("sizex", EMObject::INT); 01129 d.put("sizey", EMObject::INT); 01130 d.put("sizez", EMObject::INT); 01131 d.put("xratio", EMObject::FLOAT); 01132 d.put("yratio", EMObject::FLOAT); 01133 d.put("size", EMObject::INT); 01134 d.put("npad", EMObject::INT); 01135 d.put("sign", EMObject::INT); 01136 d.put("symmetry", EMObject::STRING); 01137 d.put("snr", EMObject::FLOAT); 01138 d.put("fftvol", EMObject::EMDATA); 01139 d.put("weight", EMObject::EMDATA); 01140 d.put("weighting", EMObject::INT); 01141 d.put("varsnr", EMObject::INT); 01142 return d; 01143 }
int nn4_ctf_rectReconstructor::insert_buffed_slice | ( | const EMData * | buffer, | |
int | mult | |||
) |
Definition at line 3583 of file reconstructor.cpp.
References EMAN::EMData::get_data(), EMAN::EMData::get_xsize(), m_volume, and m_wptr.
Referenced by insert_slice().
03584 { 03585 const float* bufdata = buffed->get_data(); 03586 float* cdata = m_volume->get_data(); 03587 float* wdata = m_wptr->get_data(); 03588 03589 int npoint = buffed->get_xsize()/4; 03590 for( int i=0; i < npoint; ++i ) { 03591 03592 int pos2 = int( bufdata[4*i] ); 03593 int pos1 = pos2 * 2; 03594 cdata[pos1 ] += bufdata[4*i+1]*mult; 03595 cdata[pos1+1] += bufdata[4*i+2]*mult; 03596 wdata[pos2 ] += bufdata[4*i+3]*mult; 03597 /* 03598 std::cout << "pos1, pos2, ctfv1, ctfv2, ctf2: "; 03599 std::cout << pos1 << " " << bufdata[5*i+1] << " " << bufdata[5*i+2] << " "; 03600 std::cout << pos2 << " " << bufdata[5*i+4] << std::endl; 03601 */ 03602 } 03603 return 0; 03604 }
int nn4_ctf_rectReconstructor::insert_padfft_slice | ( | EMData * | padfft, | |
const Transform & | trans, | |||
int | mult = 1 | |||
) |
Definition at line 3607 of file reconstructor.cpp.
References Assert, EMAN::EMData::get_attr(), EMAN::EMData::insert_rect_slice_ctf(), EMAN::EMData::insert_rect_slice_ctf_applied(), m_npad, m_sizeofprojection, m_symmetry, m_volume, m_wptr, m_xratio, m_yratio, and t.
Referenced by insert_slice().
03608 { 03609 Assert( padfft != NULL ); 03610 float tmp = padfft->get_attr("ctf_applied"); 03611 int ctf_applied = (int) tmp; 03612 vector<Transform> tsym = t.get_sym_proj(m_symmetry); 03613 for (unsigned int isym=0; isym < tsym.size(); isym++) { 03614 if(ctf_applied) m_volume->insert_rect_slice_ctf_applied(m_wptr, padfft, tsym[isym], m_sizeofprojection, m_xratio,m_yratio, m_npad, mult); 03615 03616 else m_volume->insert_rect_slice_ctf(m_wptr, padfft, tsym[isym], m_sizeofprojection, m_xratio, m_yratio, m_npad, mult); 03617 03618 } 03619 03620 03621 return 0; 03622 03623 }
int nn4_ctf_rectReconstructor::insert_slice | ( | const EMData *const | slice, | |
const Transform & | euler, | |||
const float | weight = 1.0 | |||
) | [virtual] |
Insert a slice into a 3D volume, in a given orientation.
slice | the image slice to be inserted into the 3D volume | |
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 |
NullPointerException | if the input EMData pointer is null | |
ImageFormatException | if the image is complex as opposed to real |
Reimplemented from EMAN::Reconstructor.
Definition at line 3544 of file reconstructor.cpp.
References Assert, checked_delete(), EMAN::EMData::get_attr_default(), EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), insert_buffed_slice(), insert_padfft_slice(), LOGERR, m_npad, mult(), EMAN::padfft_slice(), and t.
03545 { 03546 // sanity checks 03547 if (!slice) { 03548 LOGERR("try to insert NULL slice"); 03549 return 1; 03550 } 03551 03552 int buffed = slice->get_attr_default( "buffed", 0 ); 03553 if( buffed > 0 ) { 03554 int mult = slice->get_attr_default( "mult", 1 ); 03555 insert_buffed_slice( slice, mult ); 03556 return 0; 03557 } 03558 03559 int padffted= slice->get_attr_default("padffted", 0); 03560 //if( padffted==0 && (slice->get_xsize()!=slice->get_ysize() || slice->get_xsize()!=m_vnx) ) 03561 if( padffted==0 && (slice->get_xsize()!=slice->get_ysize()) ) 03562 { 03563 // FIXME: Why doesn't this throw an exception? 03564 LOGERR("Tried to insert a slice that is the wrong size."); 03565 return 1; 03566 } 03567 03568 EMData* padfft = NULL; 03569 03570 if( padffted != 0 ) padfft = new EMData(*slice); 03571 else padfft = padfft_slice( slice, t, m_npad ); 03572 03573 int mult= slice->get_attr_default("mult", 1); 03574 03575 Assert( mult > 0 ); 03576 insert_padfft_slice( padfft, t, mult ); 03577 03578 checked_delete( padfft ); 03579 03580 return 0; 03581 }
static Reconstructor* EMAN::nn4_ctf_rectReconstructor::NEW | ( | ) | [inline, static] |
Definition at line 1118 of file reconstructor.h.
References nn4_ctf_rectReconstructor().
01119 { 01120 return new nn4_ctf_rectReconstructor(); 01121 }
void nn4_ctf_rectReconstructor::setup | ( | const string & | symmetry, | |
int | size, | |||
int | npad, | |||
float | snr, | |||
int | sign | |||
) |
Definition at line 3460 of file reconstructor.cpp.
References buildFFTVolume(), buildNormVolume(), ESTIMATE, EMAN::Transform::get_nsym(), EMAN::Dict::has_key(), m_npad, m_nsym, m_sign, m_snr, 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_wghtb, m_xratio, m_yratio, NONE, and EMAN::FactoryBase::params.
03461 { 03462 m_weighting = ESTIMATE; 03463 if( params.has_key("weighting") ) { 03464 int tmp = int( params["weighting"] ); 03465 if( tmp==0 ) m_weighting = NONE; 03466 } 03467 03468 m_wghta = 0.2f; 03469 m_wghtb = 0.004f; 03470 03471 m_symmetry = symmetry; 03472 m_npad = npad; 03473 m_sign = sign; 03474 m_nsym = Transform::get_nsym(m_symmetry); 03475 03476 m_snr = snr; 03477 if (params.has_key("sizex")) m_vnx = params["sizex"]; 03478 else if (params.has_key("xratio")) { 03479 float temp=params["xratio"]; 03480 m_vnx=int(float(sizeprojection)*temp); 03481 } else m_vnx=sizeprojection; 03482 03483 if (params.has_key("sizey")) m_vny = params["sizey"]; 03484 else if (params.has_key("yratio")) { 03485 float temp=params["yratio"]; 03486 m_vny=int(float(sizeprojection)*temp); 03487 } 03488 else m_vny=sizeprojection; 03489 03490 if( params.has_key("sizez") ) 03491 m_vnz = params["sizez"]; 03492 else 03493 m_vnz =sizeprojection; 03494 03495 m_xratio=float(m_vnx)/float(sizeprojection); 03496 m_yratio=float(m_vny)/float(sizeprojection); 03497 03498 //std::cout<<"xratio=="<<m_xratio<<"yratio=="<<m_yratio<<std::endl; 03499 //std::cout<<"sx=="<<m_vnx<<"sy=="<<m_vny<<"sz=="<<m_vnz<<std::endl; 03500 03501 m_vnxp = m_vnx*npad; 03502 m_vnyp = m_vny*npad; 03503 m_vnzp = m_vnz*npad; 03504 03505 m_vnxc = m_vnxp/2; 03506 m_vnyc = m_vnyp/2; 03507 m_vnzc = m_vnzp/2; 03508 03509 buildFFTVolume(); 03510 buildNormVolume(); 03511 }
void nn4_ctf_rectReconstructor::setup | ( | ) | [virtual] |
Initialize the reconstructor.
Implements EMAN::Reconstructor.
Definition at line 3444 of file reconstructor.cpp.
References EMAN::Dict::has_key(), m_sizeofprojection, m_varsnr, EMAN::FactoryBase::params, and sign.
Referenced by nn4_ctf_rectReconstructor().
03445 { 03446 if( ! params.has_key("sizeprojection") ) throw std::logic_error("Error: projection size is not given"); 03447 m_sizeofprojection = params["sizeprojection"]; 03448 int npad = params.has_key("npad") ? int(params["npad"]) : 4; 03449 // int sign = params.has_key("sign") ? int(params["sign"]) : 1; 03450 int sign = 1; 03451 string symmetry = params.has_key("symmetry")? params["symmetry"].to_str() : "c1"; 03452 03453 float snr = params["snr"]; 03454 03455 m_varsnr = params.has_key("varsnr") ? int(params["varsnr"]) : 0; 03456 setup( symmetry, m_sizeofprojection, npad, snr, sign ); 03457 03458 }
int EMAN::nn4_ctf_rectReconstructor::m_count [private] |
Definition at line 1159 of file reconstructor.h.
int EMAN::nn4_ctf_rectReconstructor::m_npad [private] |
Definition at line 1163 of file reconstructor.h.
Referenced by buildFFTVolume(), insert_padfft_slice(), insert_slice(), and setup().
int EMAN::nn4_ctf_rectReconstructor::m_nsym [private] |
int EMAN::nn4_ctf_rectReconstructor::m_sign [private] |
int EMAN::nn4_ctf_rectReconstructor::m_sizeofprojection [private] |
float EMAN::nn4_ctf_rectReconstructor::m_snr [private] |
string EMAN::nn4_ctf_rectReconstructor::m_symmetry [private] |
int EMAN::nn4_ctf_rectReconstructor::m_varsnr [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vnx [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vnxc [private] |
Definition at line 1158 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), and setup().
int EMAN::nn4_ctf_rectReconstructor::m_vnxp [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vny [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vnyc [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vnyp [private] |
Definition at line 1157 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNormVolume(), finish(), and setup().
int EMAN::nn4_ctf_rectReconstructor::m_vnz [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vnzc [private] |
int EMAN::nn4_ctf_rectReconstructor::m_vnzp [private] |
Definition at line 1157 of file reconstructor.h.
Referenced by buildFFTVolume(), buildNormVolume(), finish(), and setup().
EMData* EMAN::nn4_ctf_rectReconstructor::m_volume [private] |
Definition at line 1154 of file reconstructor.h.
Referenced by buildFFTVolume(), finish(), insert_buffed_slice(), insert_padfft_slice(), and nn4_ctf_rectReconstructor().
int EMAN::nn4_ctf_rectReconstructor::m_weighting [private] |
float EMAN::nn4_ctf_rectReconstructor::m_wghta [private] |
float EMAN::nn4_ctf_rectReconstructor::m_wghtb [private] |
EMData* EMAN::nn4_ctf_rectReconstructor::m_wptr [private] |
Definition at line 1155 of file reconstructor.h.
Referenced by buildNormVolume(), finish(), insert_buffed_slice(), insert_padfft_slice(), and nn4_ctf_rectReconstructor().
float EMAN::nn4_ctf_rectReconstructor::m_xratio [private] |
Definition at line 1160 of file reconstructor.h.
Referenced by finish(), insert_padfft_slice(), and setup().
float EMAN::nn4_ctf_rectReconstructor::m_xscale [private] |
Definition at line 1161 of file reconstructor.h.
float EMAN::nn4_ctf_rectReconstructor::m_yratio [private] |
Definition at line 1160 of file reconstructor.h.
Referenced by finish(), insert_padfft_slice(), and setup().
float EMAN::nn4_ctf_rectReconstructor::m_yscale [private] |
Definition at line 1161 of file reconstructor.h.
float EMAN::nn4_ctf_rectReconstructor::m_zratio [private] |
const string nn4_ctf_rectReconstructor::NAME = "nn4_ctf_rect" [static] |