#include <processor.h>
Inheritance diagram for EMAN::NormalizeUnitProcessor:
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 Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "normalize.unitlen" |
Protected Member Functions | |
float | calc_sigma (EMData *image) const |
float | calc_mean (EMData *image) const |
Definition at line 4044 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 4069 of file processor.h.
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3416 of file processor.cpp. References EMAN::EMData::get_attr(), LOGWARN, and sqrt(). 03417 { 03418 if (!image) { 03419 LOGWARN("NULL Image"); 03420 return 0; 03421 } 03422 float ret=sqrt((float)image->get_attr("square_sum")); 03423 return ret==0.0f?1.0f:ret; 03424 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4057 of file processor.h.
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4047 of file processor.h. References NAME. 04048 { 04049 return NAME; 04050 }
|
|
Definition at line 4052 of file processor.h. 04053 { 04054 return new NormalizeUnitProcessor(); 04055 }
|
|
Definition at line 4062 of file processor.h. Referenced by get_name(). |