#include <processor.h>
Inheritance diagram for EMAN::MaskGaussInvProcessor:


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 Processor * | NEW () |
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 |
| gauss_width | Used to calculate the constant factor - gauss_width / (ny*ny) | |
| ring_width | The width of the mask ring |
Definition at line 2646 of file processor.h.
| void EMAN::MaskGaussInvProcessor::calc_locals | ( | EMData * | ) | [inline, protected, virtual] |
Reimplemented from EMAN::CircularMaskProcessor.
Definition at line 2675 of file processor.h.
References EMAN::CoordinateProcessor::ny, EMAN::Processor::params, and slice_value.
02676 { 02677 float gauss_width = params["gauss_width"]; 02678 slice_value = gauss_width / (ny * ny); 02679 }
| string EMAN::MaskGaussInvProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Reimplemented from EMAN::CircularMaskProcessor.
Definition at line 2667 of file processor.h.
| string EMAN::MaskGaussInvProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 2657 of file processor.h.
References NAME.
02658 { 02659 return NAME; 02660 }
| 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.
Reimplemented from EMAN::CircularMaskProcessor.
Definition at line 2649 of file processor.h.
References EMAN::EMObject::FLOAT, EMAN::CircularMaskProcessor::get_param_types(), EMAN::EMObject::INT, and EMAN::TypeDict::put().
02650 { 02651 TypeDict d = CircularMaskProcessor::get_param_types(); 02652 d.put("gauss_width", EMObject::FLOAT, "Used to calculate the constant factor - gauss_width / (ny*ny)" ); 02653 d.put("ring_width", EMObject::INT, "The width of the mask ring."); 02654 return d; 02655 }
| static Processor* EMAN::MaskGaussInvProcessor::NEW | ( | ) | [inline, static] |
Definition at line 2662 of file processor.h.
02663 { 02664 return new MaskGaussInvProcessor(); 02665 }
| void EMAN::MaskGaussInvProcessor::process_dist_pixel | ( | float * | pixel, | |
| float | dist | |||
| ) | const [inline, protected, virtual] |
Implements EMAN::CircularMaskProcessor.
Definition at line 2681 of file processor.h.
References slice_value.
02682 { 02683 (*pixel) /= exp(-dist * slice_value); 02684 }
const string MaskGaussInvProcessor::NAME = "math.gausskernelfix" [static] |
float EMAN::MaskGaussInvProcessor::slice_value [private] |
1.4.7