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

EMAN::LoGFourierProcessor Class Reference

processor radial function: f(x) = ((x^2 - s^2)/s^4)e^-(x^2/2s^2) More...

#include <processor.h>

Inheritance diagram for EMAN::LoGFourierProcessor:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LoGFourierProcessor ()
string get_name () const
 Get the processor's name.
string get_desc () const
 Get the descrition of this specific processor.
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

ProcessorNEW ()

Static Public Attributes

const string NAME = "filter.LoG"

Protected Member Functions

void create_radial_func (vector< float > &radial_mask) const

Private Attributes

float sigma

Detailed Description

processor radial function: f(x) = ((x^2 - s^2)/s^4)e^-(x^2/2s^2)

Parameters:
sigma LoG sigma

Definition at line 1026 of file processor.h.


Constructor & Destructor Documentation

EMAN::LoGFourierProcessor::LoGFourierProcessor  )  [inline]
 

Definition at line 1029 of file processor.h.

01029                                      :sigma(0)
01030                 {
01031                 }


Member Function Documentation

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

Implements EMAN::FourierProcessor.

Definition at line 1195 of file processor.cpp.

References Assert, sigma, EMAN::Dict::size(), and x.

01196 {
01197         
01198         Assert(radial_mask.size() > 0);
01199         float x = 0.0f , nqstep = 0.5f/radial_mask.size();
01200         size_t size=radial_mask.size();
01201         float var = sigma*sigma;
01202         for (size_t i = 0; i < size; i++) {
01203                 radial_mask[i] = ((x*x - var)/var*var)*exp(-x*x/2*var);
01204                 x += nqstep;
01205         }
01206 }

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

01043                 {
01044                         return "processor radial function: f(x) = ((x^2 - s^2)/s^4)e^-(x^2/2s^2)";
01045                 }

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

01034                 {
01035                         return NAME;
01036                 }

TypeDict EMAN::LoGFourierProcessor::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 1053 of file processor.h.

References EMAN::TypeDict::put().

01054                 {
01055                         TypeDict d;
01056                         d.put("sigma", EMObject::FLOAT, "LoG sigma");
01057                         return d;
01058                 }

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

Definition at line 1037 of file processor.h.

01038                 {
01039                         return new LoGFourierProcessor();
01040                 }

void EMAN::LoGFourierProcessor::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 1047 of file processor.h.

01048                 {
01049                         params = new_params;
01050                         sigma = params["sigma"];
01051                 }


Member Data Documentation

const string LoGFourierProcessor::NAME = "filter.LoG" [static]
 

Definition at line 70 of file processor.cpp.

float EMAN::LoGFourierProcessor::sigma [private]
 

Definition at line 1066 of file processor.h.

Referenced by create_radial_func().


The documentation for this class was generated from the following files:
Generated on Thu Nov 17 12:45:51 2011 for EMAN2 by  doxygen 1.3.9.1