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:

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

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.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 956 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 1206 of file processor.cpp.

References EMAN::LowpassFourierProcessor::lowpass, and x.

01207 {
01208 //      printf("rms = %d  lp = %f\n",radial_mask.size(),lowpass);
01209 //      Assert(radial_mask.size() > 0);         // not true, negative numbers do inverse filter processing
01210         float x = 0.0f , step = 0.5f/radial_mask.size();
01211         float sig = 1;
01212         if (lowpass > 0) {
01213                 sig = -1;
01214         }
01215 
01216         for (size_t i = 0; i < radial_mask.size(); i++) {
01217                 radial_mask[i] = exp(sig * x * x / (lowpass * lowpass));
01218                 x += step;
01219         }
01220 
01221 }

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

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

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

References NAME.

00960                 {
00961                         return NAME;
00962                 }

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

Definition at line 964 of file processor.h.

00965                 {
00966                         return new LowpassGaussProcessor();
00967                 }


Member Data Documentation

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

Definition at line 974 of file processor.h.

Referenced by get_name().


The documentation for this class was generated from the following files:
Generated on Mon Jul 19 13:06:27 2010 for EMAN2 by  doxygen 1.4.4