#include <processor.h>
Inheritance diagram for EMAN::LowpassFourierProcessor:
Public Member Functions | |
LowpassFourierProcessor () | |
void | set_params (const Dict &new_params) |
Set the processor parameters using a key/value dictionary. | |
TypeDict | get_param_types () const |
Get processor parameter information in a dictionary. | |
Static Public Member Functions | |
static string | get_group_desc () |
Get the description of this group of processors. | |
Protected Member Functions | |
virtual void | preprocess (EMData *image) |
Protected Attributes | |
float | lowpass |
It has the result of blurring the image, and of eliminating sharp edges and noise. The base class for all low pass fourier processors.
lowpass | Processor radius in terms of Nyquist (0-.5) |
Definition at line 770 of file processor.h.
|
Definition at line 773 of file processor.h. 00773 :lowpass(0) 00774 { 00775 }
|
|
Get the description of this group of processors. This function is defined in a parent class. It gives a introduction to a group of processors.
Reimplemented from EMAN::FourierProcessor. Definition at line 793 of file processor.h. 00794 { 00795 return "Low-pass processor attenuates amplitudes at high spatial frequencies. It has the result of blurring the image, and of eliminating sharp edges and noise. The base class for all low pass fourier processors."; 00796 }
|
|
Get processor parameter information in a dictionary. Each parameter has one record in the dictionary. Each record contains its name, data-type, and description.
Reimplemented from EMAN::FourierProcessor. Definition at line 786 of file processor.h. References EMAN::EMObject::FLOAT, EMAN::FourierProcessor::get_param_types(), and EMAN::TypeDict::put(). 00787 { 00788 TypeDict d = FourierProcessor::get_param_types(); 00789 d.put("lowpass", EMObject::FLOAT, "Processor radius in terms of Nyquist (0-.5)"); 00790 return d; 00791 }
|
|
Reimplemented from EMAN::FourierProcessor. Definition at line 680 of file processor.cpp. References EMAN::EMData::get_attr_dict(), EMAN::Dict::has_key(), lowpass, EMAN::Processor::params, and EMAN::EMData::set_attr(). 00681 { 00682 if(params.has_key("apix")) { 00683 image->set_attr("apix_x", (float)params["apix"]); 00684 image->set_attr("apix_y", (float)params["apix"]); 00685 image->set_attr("apix_z", (float)params["apix"]); 00686 } 00687 00688 const Dict dict = image->get_attr_dict(); 00689 00690 if( params.has_key("cutoff_abs") ) { 00691 lowpass = params["cutoff_abs"]; 00692 } 00693 else if( params.has_key("cutoff_freq") ) { 00694 lowpass = (float)params["cutoff_freq"] * (float)dict["apix_x"] * (float)dict["nx"] / 2.0f; 00695 } 00696 else if( params.has_key("cutoff_pixels") ) { 00697 lowpass = (float)params["cutoff_pixels"] / (float)dict["nx"]; 00698 } 00699 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::Processor. Definition at line 777 of file processor.h. References EMAN::Dict::has_key(), lowpass, and EMAN::Processor::params. 00778 { 00779 params = new_params; 00780 if( params.has_key("lowpass") ) { 00781 lowpass = params["lowpass"]; 00782 } 00783 // printf("%s %f\n",params.keys()[0].c_str(),lowpass); 00784 }
|
|
Definition at line 800 of file processor.h. Referenced by EMAN::LowpassTanhProcessor::create_radial_func(), EMAN::LowpassGaussProcessor::create_radial_func(), EMAN::LowpassSharpCutoffProcessor::create_radial_func(), preprocess(), and set_params(). |