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

EMAN::LowpassGaussProcessor Class Reference

processor radial function: if lowpass > 0, f(x) = exp(-x*x/(lowpass*lowpass)); else f(x) = exp(x*x/(lowpass*lowpass)) More...

#include <processor.h>

Inheritance diagram for EMAN::LowpassGaussProcessor:

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

ProcessorNEW ()

Static Public Attributes

const string NAME = "eman1.filter.lowpass.gaussian"

Protected Member Functions

void create_radial_func (vector< float > &radial_mask) const

Detailed Description

processor radial function: if lowpass > 0, f(x) = exp(-x*x/(lowpass*lowpass)); else f(x) = exp(x*x/(lowpass*lowpass))

Definition at line 916 of file processor.h.


Member Function Documentation

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

Implements EMAN::FourierProcessor.

Definition at line 1099 of file processor.cpp.

References x.

01100 {
01101 //      printf("rms = %d  lp = %f\n",radial_mask.size(),lowpass);
01102 //      Assert(radial_mask.size() > 0);         // not true, negative numbers do inverse filter processing
01103         float x = 0.0f , step = 0.5f/radial_mask.size();
01104         float sig = 1;
01105         if (lowpass > 0) {
01106                 sig = -1;
01107         }
01108 
01109         for (size_t i = 0; i < radial_mask.size(); i++) {
01110                 radial_mask[i] = exp(sig * x * x / (lowpass * lowpass));
01111                 x += step;
01112         }
01113 
01114 }

string EMAN::LowpassGaussProcessor::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 929 of file processor.h.

00930                 {
00931                         return "processor radial function: if lowpass > 0, f(x) = exp(-x*x/(lowpass*lowpass)); else f(x) = exp(x*x/(lowpass*lowpass));";
00932                 }

string EMAN::LowpassGaussProcessor::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 919 of file processor.h.

00920                 {
00921                         return NAME;
00922                 }

Processor* EMAN::LowpassGaussProcessor::NEW  )  [inline, static]
 

Definition at line 924 of file processor.h.

00925                 {
00926                         return new LowpassGaussProcessor();
00927                 }


Member Data Documentation

const string LowpassGaussProcessor::NAME = "eman1.filter.lowpass.gaussian" [static]
 

Definition at line 72 of file processor.cpp.


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