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

EMAN::MaskGaussInvProcessor Class Reference

f(x) = f(x) / exp(-radius*radius * gauss_width / (ny*ny)) More...

#include <processor.h>

Inheritance diagram for EMAN::MaskGaussInvProcessor:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

TypeDict get_param_types () const
 Get processor parameter information in a dictionary.
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 = "math.gausskernelfix"

Protected Member Functions

void calc_locals (EMData *)
void process_dist_pixel (float *pixel, float dist) const

Private Attributes

float slice_value

Detailed Description

f(x) = f(x) / exp(-radius*radius * gauss_width / (ny*ny))

Parameters:
gauss_width Used to calculate the constant factor - gauss_width / (ny*ny)
ring_width The width of the mask ring

Definition at line 2649 of file processor.h.


Member Function Documentation

void EMAN::MaskGaussInvProcessor::calc_locals EMData  )  [inline, protected, virtual]
 

Reimplemented from EMAN::CircularMaskProcessor.

Definition at line 2678 of file processor.h.

References ny.

02679                 {
02680                         float gauss_width = params["gauss_width"];
02681                         slice_value = gauss_width / (ny * ny);
02682                 }

string EMAN::MaskGaussInvProcessor::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.

Reimplemented from EMAN::CircularMaskProcessor.

Definition at line 2670 of file processor.h.

02671                 {
02672                         return "f(x) = f(x) / exp(-radius*radius * gauss_width / (ny*ny))";
02673                 }

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

02661                 {
02662                         return NAME;
02663                 }

TypeDict EMAN::MaskGaussInvProcessor::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::CircularMaskProcessor.

Definition at line 2652 of file processor.h.

References EMAN::TypeDict::put().

02653                 {
02654                         TypeDict d = CircularMaskProcessor::get_param_types();
02655                         d.put("gauss_width", EMObject::FLOAT, "Used to calculate the constant factor - gauss_width / (ny*ny)" );
02656                         d.put("ring_width", EMObject::INT, "The width of the mask ring.");
02657                         return d;
02658                 }

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

Definition at line 2665 of file processor.h.

02666                 {
02667                         return new MaskGaussInvProcessor();
02668                 }

void EMAN::MaskGaussInvProcessor::process_dist_pixel float *  pixel,
float  dist
const [inline, protected, virtual]
 

Implements EMAN::CircularMaskProcessor.

Definition at line 2684 of file processor.h.

References dist().

02685                 {
02686                         (*pixel) /= exp(-dist * slice_value);
02687                 }


Member Data Documentation

const string MaskGaussInvProcessor::NAME = "math.gausskernelfix" [static]
 

Definition at line 115 of file processor.cpp.

float EMAN::MaskGaussInvProcessor::slice_value [private]
 

Definition at line 2689 of file processor.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 12 13:52:02 2011 for EMAN2 by  doxygen 1.3.9.1