EMAN::MaskNoiseProcessor Class Reference

fills masked region More...

#include <processor.h>

Inheritance diagram for EMAN::MaskNoiseProcessor:

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

Collaboration graph
[legend]
List of all members.

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 ProcessorNEW ()

Static Public Attributes

static const string NAME = "mask.noise"

Protected Member Functions

void process_dist_pixel (float *pixel, float dist) const

Detailed Description

fills masked region

Definition at line 2488 of file processor.h.


Member Function Documentation

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

02501                 {
02502                         return "fills masked region";
02503                 }

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

References NAME.

02492                 {
02493                         return NAME;
02494                 }

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

Definition at line 2495 of file processor.h.

02496                 {
02497                         return new MaskNoiseProcessor();
02498                 }

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

Implements EMAN::CircularMaskProcessor.

Definition at line 2508 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.

02509                 {
02510                         if (dist >= outer_radius_square || dist < inner_radius_square)
02511                         {
02512                                 *pixel = Util::get_gauss_rand(mean, sigma);
02513                         }
02514                 }


Member Data Documentation

const string MaskNoiseProcessor::NAME = "mask.noise" [static]

Definition at line 2505 of file processor.h.

Referenced by get_name().


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