EMAN2
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
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 ()

Static Public Attributes

static const string NAME = "math.addsignoise"

Protected Member Functions

float get_sigma (EMData *image)

Detailed Description

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

Definition at line 4936 of file processor.h.


Member Function Documentation

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

                {
                        return "add sigma noise.";
                }
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 4939 of file processor.h.

References NAME.

                {
                        return NAME;
                }
float AddSigmaNoiseProcessor::get_sigma ( EMData image) [protected, virtual]

Reimplemented from EMAN::AddNoiseProcessor.

Definition at line 4728 of file processor.cpp.

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

{
        if (!image) {
                LOGWARN("NULL Image");
                return 0;
        }
        return image->get_attr("sigma");
}
static Processor* EMAN::AddSigmaNoiseProcessor::NEW ( ) [inline, static]

Reimplemented from EMAN::AddNoiseProcessor.

Definition at line 4944 of file processor.h.

                {
                        return new AddSigmaNoiseProcessor();
                }

Member Data Documentation

const string AddSigmaNoiseProcessor::NAME = "math.addsignoise" [static]

Reimplemented from EMAN::AddNoiseProcessor.

Definition at line 4954 of file processor.h.

Referenced by get_name().


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