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

EMAN::MaskNoiseProcessor Class Reference

fills masked region More...

#include <processor.h>

Inheritance diagram for EMAN::MaskNoiseProcessor:

[legend]
Collaboration diagram for EMAN::MaskNoiseProcessor:
[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

ProcessorNEW ()

Static Public Attributes

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

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

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

02493                 {
02494                         return NAME;
02495                 }

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

Definition at line 2496 of file processor.h.

02497                 {
02498                         return new MaskNoiseProcessor();
02499                 }

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

Implements EMAN::CircularMaskProcessor.

Definition at line 2509 of file processor.h.

References dist().

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


Member Data Documentation

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

Definition at line 106 of file processor.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Apr 30 15:39:21 2010 for EMAN2 by  doxygen 1.3.9.1