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

static ProcessorNEW ()

Static Public Attributes

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


Member Function Documentation

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

References EMAN::EMObject::FLOAT, EMAN::CircularMaskProcessor::get_param_types(), EMAN::EMObject::INT, and EMAN::TypeDict::put().

02590                 {
02591                         TypeDict d = CircularMaskProcessor::get_param_types();
02592                         d.put("gauss_width", EMObject::FLOAT, "Used to calculate the constant factor - gauss_width / (ny*ny)" );
02593                         d.put("ring_width", EMObject::INT, "The width of the mask ring.");
02594                         return d;
02595                 }

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

References NAME.

02598                 {
02599                         return NAME;
02600                 }

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

Definition at line 2602 of file processor.h.

02603                 {
02604                         return new MaskGaussInvProcessor();
02605                 }

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

02608                 {
02609                         return "f(x) = f(x) / exp(-radius*radius * gauss_width / (ny*ny))";
02610                 }

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

Reimplemented from EMAN::CircularMaskProcessor.

Definition at line 2615 of file processor.h.

References EMAN::CoordinateProcessor::ny, EMAN::Processor::params, and slice_value.

02616                 {
02617                         float gauss_width = params["gauss_width"];
02618                         slice_value = gauss_width / (ny * ny);
02619                 }

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

Implements EMAN::CircularMaskProcessor.

Definition at line 2621 of file processor.h.

References slice_value.

02622                 {
02623                         (*pixel) /= exp(-dist * slice_value);
02624                 }


Member Data Documentation

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

Definition at line 2612 of file processor.h.

Referenced by get_name().

Definition at line 2626 of file processor.h.

Referenced by calc_locals(), and process_dist_pixel().


The documentation for this class was generated from the following files:

Generated on Sun Mar 14 03:08:30 2010 for EMAN2 by  doxygen 1.5.6