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

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

ProcessorNEW ()

Static Public Attributes

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


Member Function Documentation

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

Implements EMAN::NormalizeProcessor.

Definition at line 3731 of file processor.cpp.

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

03732 {
03733         if (!image) {
03734                 LOGWARN("NULL Image");
03735                 return 0;
03736         }
03737         return image->get_attr("mean");
03738 }

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

04082                 {
04083                         return "do a standard normalization on an image.";
04084                 }

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

04072                 {
04073                         return NAME;
04074                 }

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

Definition at line 4076 of file processor.h.

04077                 {
04078                         return new NormalizeStdProcessor();
04079                 }


Member Data Documentation

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

Definition at line 144 of file processor.cpp.


The documentation for this class was generated from the following files:
Generated on Mon May 2 13:30:28 2011 for EMAN2 by  doxygen 1.3.9.1