EMAN::HighpassTanhProcessor Class Reference

processor radial function: f(x)=tanh(x-highpass)/2.0+0.5; More...

#include <processor.h>

Inheritance diagram for EMAN::HighpassTanhProcessor:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

string get_name () const
 Get the processor's name.
string get_desc () const
 Get the descrition of this specific processor.

Static Public Member Functions

static ProcessorNEW ()

Static Public Attributes

static const string NAME = "eman1.filter.highpass.tanh"

Protected Member Functions

void create_radial_func (vector< float > &radial_mask) const

Detailed Description

processor radial function: f(x)=tanh(x-highpass)/2.0+0.5;

Definition at line 1121 of file processor.h.


Member Function Documentation

void HighpassTanhProcessor::create_radial_func ( vector< float > &  radial_mask  )  const [protected, virtual]

Implements EMAN::FourierProcessor.

Definition at line 1282 of file processor.cpp.

References Assert, EMAN::HighpassFourierProcessor::highpass, and x.

01283 {
01284         Assert(radial_mask.size() > 0);
01285         float x = 0.0f , step = 0.5f/radial_mask.size();
01286         for (size_t i = 0; i < radial_mask.size(); i++) {
01287                 radial_mask[i] = tanh(x - highpass) / 2.0f + 0.5f;
01288                 x += step;
01289         }
01290 }

string EMAN::HighpassTanhProcessor::get_desc (  )  const [inline, virtual]

Get the descrition of this specific processor.

This function must be overwritten by a subclass.

Returns:
The description of this processor.

Implements EMAN::Processor.

Definition at line 1133 of file processor.h.

01134                 {
01135                         return "processor radial function: f(x)=tanh(x-highpass)/2.0+0.5;";
01136                 }

string EMAN::HighpassTanhProcessor::get_name (  )  const [inline, virtual]

Get the processor's name.

Each processor is identified by a unique name.

Returns:
The processor's name.

Implements EMAN::Processor.

Definition at line 1124 of file processor.h.

References NAME.

01125                 {
01126                         return NAME;
01127                 }

static Processor* EMAN::HighpassTanhProcessor::NEW (  )  [inline, static]

Definition at line 1128 of file processor.h.

01129                 {
01130                         return new HighpassTanhProcessor();
01131                 }


Member Data Documentation

const string HighpassTanhProcessor::NAME = "eman1.filter.highpass.tanh" [static]

Definition at line 1138 of file processor.h.

Referenced by get_name().


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