#include <processor.h>
Inheritance diagram for EMAN::MaskNoiseProcessor:
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 Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "mask.noise" |
Protected Member Functions | |
void | process_dist_pixel (float *pixel, float dist) const |
Definition at line 2535 of file processor.h.
string EMAN::MaskNoiseProcessor::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 2547 of file processor.h.
string EMAN::MaskNoiseProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 2538 of file processor.h.
References NAME.
02539 { 02540 return NAME; 02541 }
static Processor* EMAN::MaskNoiseProcessor::NEW | ( | ) | [inline, static] |
void EMAN::MaskNoiseProcessor::process_dist_pixel | ( | float * | pixel, | |
float | dist | |||
) | const [inline, protected, virtual] |
Implements EMAN::CircularMaskProcessor.
Definition at line 2555 of file processor.h.
References EMAN::Util::get_gauss_rand(), EMAN::CircularMaskProcessor::inner_radius_square, EMAN::CoordinateProcessor::mean, EMAN::CircularMaskProcessor::outer_radius_square, and EMAN::CoordinateProcessor::sigma.
02556 { 02557 if (dist >= outer_radius_square || dist < inner_radius_square) 02558 { 02559 *pixel = Util::get_gauss_rand(mean, sigma); 02560 } 02561 }
const string MaskNoiseProcessor::NAME = "mask.noise" [static] |