#include <processor.h>
Inheritance diagram for EMAN::HighpassAutoPeakProcessor:
Public Member Functions | |
string | get_name () const |
Get the processor's name. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
Static Public Member Functions | |
Processor * | NEW () |
Static Public Attributes | |
const string | NAME = "filter.highpass.autopeak" |
Protected Member Functions | |
void | create_radial_func (vector< float > &radial_mask, EMData *image) const |
virtual void | preprocess (EMData *image) |
Protected Attributes | |
float | highpass |
Definition at line 948 of file processor.h.
|
Implements EMAN::FourierAnlProcessor. Definition at line 1167 of file processor.cpp. References highpass. 01168 { 01169 unsigned int c; 01170 01171 // for (unsigned int i=0; i<radial_mask.size(); i++) printf("%d\t%f\n",i,radial_mask[i]); 01172 for (c=2; c<radial_mask.size(); c++) if (radial_mask[c-1]<=radial_mask[c]) break; 01173 if (c>highpass) c=(unsigned int)highpass; // the *2 is for the 2x oversampling 01174 01175 radial_mask[0]=0.0; 01176 // for (int i=1; i<radial_mask.size(); i++) radial_mask[i]=(i<=c?radial_mask[c+1]/radial_mask[i]:1.0); 01177 for (unsigned int i=1; i<radial_mask.size(); i++) radial_mask[i]=(i<=c?0.0f:1.0f); 01178 01179 printf("%f %d\n",highpass,c); 01180 // for (unsigned int i=0; i<radial_mask.size(); i++) printf("%d\t%f\n",i,radial_mask[i]); 01181 01182 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 960 of file processor.h. 00961 { 00962 return "Attempts to automatically remove the low resolution peak present in virtually all cryoEM data."; 00963 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 951 of file processor.h. 00952 {
00953 return NAME;
00954 }
|
|
Definition at line 955 of file processor.h. 00956 { 00957 return new HighpassAutoPeakProcessor(); 00958 }
|
|
Reimplemented from EMAN::FourierAnlProcessor. Definition at line 1146 of file processor.cpp. References EMAN::EMData::get_attr_dict(), EMAN::Dict::has_key(), highpass, and EMAN::EMData::set_attr(). 01147 { 01148 if(params.has_key("apix")) { 01149 image->set_attr("apix_x", (float)params["apix"]); 01150 image->set_attr("apix_y", (float)params["apix"]); 01151 image->set_attr("apix_z", (float)params["apix"]); 01152 } 01153 01154 const Dict dict = image->get_attr_dict(); 01155 01156 if( params.has_key("cutoff_abs") ) { 01157 highpass = params["cutoff_abs"]; 01158 } 01159 else if( params.has_key("cutoff_freq") ) { 01160 highpass = (float)params["cutoff_freq"] * (float)dict["apix_x"] * (float)dict["nx"] / 2.0f; 01161 } 01162 else if( params.has_key("cutoff_pixels") ) { 01163 highpass = (float)params["cutoff_pixels"] / (float)dict["nx"]; 01164 } 01165 }
|
|
Definition at line 970 of file processor.h. Referenced by create_radial_func(), and preprocess(). |
|
Definition at line 72 of file processor.cpp. |