#include <processor.h>
Inheritance diagram for EMAN::HighpassFourierProcessor:
Public Member Functions | |
HighpassFourierProcessor () | |
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 | highpass |
It attenuates amplitudes at low spatial frequencies, and increases amplitudes for high spatial frequencies. It has the result of enhancing the edges in the image while suppressing all slow-moving variations.
HighpassFourierProcessor class is the base class for all high pass fourier processors.
highpass | Processor radius in terms of Nyquist (0-.5) |
Definition at line 870 of file processor.h.
|
Definition at line 873 of file processor.h. 00873 :highpass(0) 00874 { 00875 }
|
|
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 892 of file processor.h. 00893 { 00894 return "High-pass processor is rotationally symmetric 2D function. It attenuates amplitudes at low spatial frequencies, and increases amplitudes for high spatial frequencies. It has the result of enhancing the edges in the image while suppressing all slow-moving variations. <br> HighpassFourierProcessor class is the base class for all high pass fourier processors."; 00895 }
|
|
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 885 of file processor.h. References EMAN::EMObject::FLOAT, EMAN::FourierProcessor::get_param_types(), and EMAN::TypeDict::put(). 00886 { 00887 TypeDict d = FourierProcessor::get_param_types(); 00888 d.put("highpass", EMObject::FLOAT, "Processor radius in terms of Nyquist (0-.5)"); 00889 return d; 00890 }
|
|
Reimplemented from EMAN::FourierProcessor. Definition at line 703 of file processor.cpp. References EMAN::EMData::get_attr_dict(), EMAN::Dict::has_key(), highpass, EMAN::Processor::params, and EMAN::EMData::set_attr(). 00704 { 00705 if(params.has_key("apix")) { 00706 image->set_attr("apix_x", (float)params["apix"]); 00707 image->set_attr("apix_y", (float)params["apix"]); 00708 image->set_attr("apix_z", (float)params["apix"]); 00709 } 00710 00711 const Dict dict = image->get_attr_dict(); 00712 00713 if( params.has_key("cutoff_abs") ) { 00714 highpass = params["cutoff_abs"]; 00715 } 00716 else if( params.has_key("cutoff_freq") ) { 00717 highpass = (float)params["cutoff_freq"] * (float)dict["apix_x"] * (float)dict["nx"] / 2.0f; 00718 } 00719 else if( params.has_key("cutoff_pixels") ) { 00720 highpass = (float)params["cutoff_pixels"] / (float)dict["nx"]; 00721 } 00722 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::Processor. Definition at line 877 of file processor.h. References EMAN::Dict::has_key(), highpass, and EMAN::Processor::params. 00878 { 00879 params = new_params; 00880 if( params.has_key("highpass") ) { 00881 highpass = params["highpass"]; 00882 } 00883 }
|
|