#include <processor.h>


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.
| EMAN::LowpassFourierProcessor::LowpassFourierProcessor | ( | ) | [inline] |
| void EMAN::LowpassFourierProcessor::set_params | ( | const Dict & | new_params | ) | [inline, virtual] |
Set the processor parameters using a key/value dictionary.
| new_params | A dictionary containing the new parameters. |
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 }
| TypeDict EMAN::LowpassFourierProcessor::get_param_types | ( | ) | const [inline, virtual] |
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 }
| static string EMAN::LowpassFourierProcessor::get_group_desc | ( | ) | [inline, static] |
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 }
| void LowpassFourierProcessor::preprocess | ( | EMData * | image | ) | [protected, virtual] |
Reimplemented from EMAN::FourierProcessor.
Definition at line 619 of file processor.cpp.
References EMAN::EMData::get_attr_dict(), EMAN::Dict::has_key(), lowpass, EMAN::Processor::params, and EMAN::EMData::set_attr().
00620 { 00621 if(params.has_key("apix")) { 00622 image->set_attr("apix_x", (float)params["apix"]); 00623 image->set_attr("apix_y", (float)params["apix"]); 00624 image->set_attr("apix_z", (float)params["apix"]); 00625 } 00626 00627 const Dict dict = image->get_attr_dict(); 00628 00629 if( params.has_key("cutoff_abs") ) { 00630 lowpass = params["cutoff_abs"]; 00631 } 00632 else if( params.has_key("cutoff_freq") ) { 00633 lowpass = (float)params["cutoff_freq"] * (float)dict["apix_x"] * (float)dict["nx"] / 2.0f; 00634 } 00635 else if( params.has_key("cutoff_pixels") ) { 00636 lowpass = (float)params["cutoff_pixels"] / (float)dict["nx"]; 00637 } 00638 }
float EMAN::LowpassFourierProcessor::lowpass [protected] |
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().
1.5.6