Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

EMAN::HighpassFourierProcessor Class Reference

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

#include <processor.h>

Inheritance diagram for EMAN::HighpassFourierProcessor:

[legend]
Collaboration diagram for EMAN::HighpassFourierProcessor:
[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

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 830 of file processor.h.


Constructor & Destructor Documentation

EMAN::HighpassFourierProcessor::HighpassFourierProcessor  )  [inline]
 

Definition at line 833 of file processor.h.

00833                                           :highpass(0)
00834                 {
00835                 }


Member Function Documentation

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 852 of file processor.h.

00853                 {
00854                         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.";
00855                 }

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 845 of file processor.h.

References EMAN::TypeDict::put().

00846                 {
00847                         TypeDict d = FourierProcessor::get_param_types();
00848                         d.put("highpass", EMObject::FLOAT, "Processor radius in terms of Nyquist (0-.5)");
00849                         return d;
00850                 }

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

Reimplemented from EMAN::FourierProcessor.

Definition at line 701 of file processor.cpp.

References EMAN::EMData::get_attr_dict(), EMAN::Dict::has_key(), highpass, and EMAN::EMData::set_attr().

00702 {
00703         if(params.has_key("apix")) {
00704                 image->set_attr("apix_x", (float)params["apix"]);
00705                 image->set_attr("apix_y", (float)params["apix"]);
00706                 image->set_attr("apix_z", (float)params["apix"]);
00707         }
00708 
00709         const Dict dict = image->get_attr_dict();
00710 
00711         if( params.has_key("cutoff_abs") ) {
00712                 highpass = params["cutoff_abs"];
00713         }
00714         else if( params.has_key("cutoff_freq") ) {
00715                 highpass = (float)params["cutoff_freq"] * (float)dict["apix_x"] * (float)dict["nx"] / 2.0f;
00716         }
00717         else if( params.has_key("cutoff_pixels") ) {
00718                 highpass = (float)params["cutoff_pixels"] / (float)dict["nx"];
00719         }
00720 }

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 837 of file processor.h.

00838                 {
00839                         params = new_params;
00840                         if( params.has_key("highpass") ) {
00841                                 highpass = params["highpass"];
00842                         }
00843                 }


Member Data Documentation

float EMAN::HighpassFourierProcessor::highpass [protected]
 

Definition at line 859 of file processor.h.

Referenced by preprocess().


The documentation for this class was generated from the following files:
Generated on Fri Apr 30 15:39:19 2010 for EMAN2 by  doxygen 1.3.9.1