#include <processor.h>
Inheritance diagram for EMAN::NormalizeUnitSumProcessor:
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.unitsum" |
Protected Member Functions | |
float | calc_sigma (EMData *image) const |
float | calc_mean (EMData *image) const |
Definition at line 4113 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 4138 of file processor.h.
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3533 of file processor.cpp. References EMAN::EMData::get_attr(), EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::get_zsize(), and LOGWARN. 03534 { 03535 if (!image) { 03536 LOGWARN("NULL Image"); 03537 return 0; 03538 } 03539 float ret=(float)image->get_attr("mean")*image->get_xsize()*image->get_ysize()*image->get_zsize(); 03540 return ret==0.0f?1.0f:ret; 03541 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4126 of file processor.h.
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4116 of file processor.h. References NAME. 04117 { 04118 return NAME; 04119 }
|
|
Definition at line 4121 of file processor.h. 04122 { 04123 return new NormalizeUnitSumProcessor(); 04124 }
|
|
Definition at line 4131 of file processor.h. Referenced by get_name(). |