EMAN2
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
EMAN::NormalizeStdProcessor Class Reference

do a standard normalization on an image. More...

#include <processor.h>

Inheritance diagram for EMAN::NormalizeStdProcessor:
Inheritance graph
[legend]
Collaboration diagram for EMAN::NormalizeStdProcessor:
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 = "normalize"

Protected Member Functions

float calc_mean (EMData *image) const

Detailed Description

do a standard normalization on an image.

Definition at line 4378 of file processor.h.


Member Function Documentation

float NormalizeStdProcessor::calc_mean ( EMData image) const [protected, virtual]

Implements EMAN::NormalizeProcessor.

Definition at line 3962 of file processor.cpp.

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

{
        if (!image) {
                LOGWARN("NULL Image");
                return 0;
        }
        return image->get_attr("mean");
}
string EMAN::NormalizeStdProcessor::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.

Implements EMAN::Processor.

Definition at line 4391 of file processor.h.

                {
                        return "do a standard normalization on an image.";
                }
string EMAN::NormalizeStdProcessor::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 4381 of file processor.h.

References NAME.

                {
                        return NAME;
                }
static Processor* EMAN::NormalizeStdProcessor::NEW ( ) [inline, static]

Definition at line 4386 of file processor.h.

                {
                        return new NormalizeStdProcessor();
                }

Member Data Documentation

const string NormalizeStdProcessor::NAME = "normalize" [static]

Definition at line 4396 of file processor.h.

Referenced by get_name().


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