EMAN::AddSigmaNoiseProcessor Class Reference

add sigma noise, multiply image's sigma value to noise More...

#include <processor.h>

Inheritance diagram for EMAN::AddSigmaNoiseProcessor:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual string get_name () const
 Get the processor's name.
virtual string get_desc () const
 Get the descrition of this specific processor.

Static Public Member Functions

static ProcessorNEW ()

Protected Member Functions

float get_sigma (EMData *image)


Detailed Description

add sigma noise, multiply image's sigma value to noise

Definition at line 4311 of file processor.h.


Member Function Documentation

virtual string EMAN::AddSigmaNoiseProcessor::get_name (  )  const [inline, virtual]

Get the processor's name.

Each processor is identified by a unique name.

Returns:
The processor's name.

Reimplemented from EMAN::AddNoiseProcessor.

Definition at line 4314 of file processor.h.

04315                 {
04316                         return "math.addsignoise";
04317                 }

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

Reimplemented from EMAN::AddNoiseProcessor.

Definition at line 4319 of file processor.h.

04320                 {
04321                         return new AddSigmaNoiseProcessor();
04322                 }

virtual string EMAN::AddSigmaNoiseProcessor::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::AddNoiseProcessor.

Definition at line 4324 of file processor.h.

04325                 {
04326                         return "add sigma noise.";
04327                 }

float AddSigmaNoiseProcessor::get_sigma ( EMData image  )  [protected, virtual]

Reimplemented from EMAN::AddNoiseProcessor.

Definition at line 3923 of file processor.cpp.

References EMAN::EMData::get_attr(), and LOGWARN.

03924 {
03925         if (!image) {
03926                 LOGWARN("NULL Image");
03927                 return 0;
03928         }
03929         return image->get_attr("sigma");
03930 }


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

Generated on Sat Nov 21 02:20:33 2009 for EMAN2 by  doxygen 1.5.6