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

EMAN::LowpassSharpCutoffProcessor Class Reference

processor radial function: if x <= lowpass, f(x) = 1; else f(x) = 0; More...

#include <processor.h>

Inheritance diagram for EMAN::LowpassSharpCutoffProcessor:

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

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.sharp"

Protected Member Functions

void create_radial_func (vector< float > &radial_mask) const

Detailed Description

processor radial function: if x <= lowpass, f(x) = 1; else f(x) = 0;

Definition at line 904 of file processor.h.


Member Function Documentation

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

Implements EMAN::FourierProcessor.

Definition at line 1171 of file processor.cpp.

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

01172 {
01173         Assert(radial_mask.size() > 0);
01174         float x = 0.0f , step = 0.5f/radial_mask.size();
01175 #ifdef DEBUG
01176         printf("%d %f %f\n",(int)radial_mask.size(),lowpass,step);
01177 #endif
01178         for (size_t i = 0; i < radial_mask.size(); i++) {
01179                 if (x <= lowpass) {
01180                         radial_mask[i] = 1.0f;
01181                 }
01182                 else {
01183                         radial_mask[i] = 0;
01184                 }
01185                 x += step;
01186         }
01187 }

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

00918                 {
00919                         return "processor radial function: if x <= lowpass, f(x) = 1; else f(x) = 0;";
00920                 }

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

References NAME.

00908                 {
00909                         return NAME;
00910                 }

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

Definition at line 912 of file processor.h.

00913                 {
00914                         return new LowpassSharpCutoffProcessor();
00915                 }


Member Data Documentation

const string LowpassSharpCutoffProcessor::NAME = "eman1.filter.lowpass.sharp" [static]
 

Definition at line 922 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:26 2010 for EMAN2 by  doxygen 1.4.4