EMAN::HighpassFourierProcessor Class Reference

High-pass processor is rotationally symmetric 2D function. More...

#include <processor.h>

Inheritance diagram for EMAN::HighpassFourierProcessor:

Inheritance graph
[legend]
Collaboration diagram for EMAN::HighpassFourierProcessor:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

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.
HighpassFourierProcessor class is the base class for all high pass fourier processors.

Parameters:
highpass Processor radius in terms of Nyquist (0-.5)

Definition at line 870 of file processor.h.


Constructor & Destructor Documentation

EMAN::HighpassFourierProcessor::HighpassFourierProcessor (  )  [inline]

Definition at line 873 of file processor.h.

00873                                           :highpass(0)
00874                 {
00875                 }


Member Function Documentation

static string EMAN::HighpassFourierProcessor::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.

Returns:
The description of this 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                 }

TypeDict EMAN::HighpassFourierProcessor::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.

Returns:
A dictionary containing the parameter info.

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                 }

void HighpassFourierProcessor::preprocess ( EMData image  )  [protected, virtual]

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 }

void EMAN::HighpassFourierProcessor::set_params ( const Dict new_params  )  [inline, virtual]

Set the processor parameters using a key/value dictionary.

Parameters:
new_params A dictionary containing the new parameters.

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                 }


Member Data Documentation

float EMAN::HighpassFourierProcessor::highpass [protected]

Definition at line 899 of file processor.h.

Referenced by EMAN::HighpassButterworthProcessor::create_radial_func(), EMAN::HighpassTanhProcessor::create_radial_func(), EMAN::HighpassGaussProcessor::create_radial_func(), EMAN::HighpassSharpCutoffProcessor::create_radial_func(), preprocess(), and set_params().


The documentation for this class was generated from the following files:
Generated on Mon Jul 19 12:43:00 2010 for EMAN2 by  doxygen 1.4.7