#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 4107 of file processor.h.
float EMAN::NormalizeUnitSumProcessor::calc_mean | ( | EMData * | image | ) | const [inline, protected, virtual] |
float NormalizeUnitSumProcessor::calc_sigma | ( | EMData * | image | ) | const [protected, virtual] |
Reimplemented from EMAN::NormalizeProcessor.
Definition at line 3519 of file processor.cpp.
References EMAN::EMData::get_attr(), EMAN::EMData::get_xsize(), EMAN::EMData::get_ysize(), EMAN::EMData::get_zsize(), and LOGWARN.
03520 { 03521 if (!image) { 03522 LOGWARN("NULL Image"); 03523 return 0; 03524 } 03525 float ret=(float)image->get_attr("mean")*image->get_xsize()*image->get_ysize()*image->get_zsize(); 03526 return ret==0.0f?1.0f:ret; 03527 }
string EMAN::NormalizeUnitSumProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Implements EMAN::Processor.
Definition at line 4120 of file processor.h.
string EMAN::NormalizeUnitSumProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 4110 of file processor.h.
References NAME.
04111 { 04112 return NAME; 04113 }
static Processor* EMAN::NormalizeUnitSumProcessor::NEW | ( | ) | [inline, static] |
Definition at line 4115 of file processor.h.
04116 { 04117 return new NormalizeUnitSumProcessor(); 04118 }
const string NormalizeUnitSumProcessor::NAME = "normalize.unitsum" [static] |