#include <processor.h>
Inheritance diagram for EMAN::NormalizeMaxMinProcessor:
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.maxmin" |
Protected Member Functions | |
float | calc_sigma (EMData *image) const |
float | calc_mean (EMData *image) const |
mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;
Definition at line 4347 of file processor.h.
float NormalizeMaxMinProcessor::calc_mean | ( | EMData * | image | ) | const [protected, virtual] |
Implements EMAN::NormalizeProcessor.
Definition at line 3706 of file processor.cpp.
References EMAN::EMData::get_attr(), and LOGWARN.
03707 { 03708 if (!image) { 03709 LOGWARN("NULL Image"); 03710 return 0; 03711 } 03712 float maxval = image->get_attr("maximum"); 03713 float minval = image->get_attr("minimum"); 03714 return (maxval - minval) / 2; 03715 }
float NormalizeMaxMinProcessor::calc_sigma | ( | EMData * | image | ) | const [protected, virtual] |
Reimplemented from EMAN::NormalizeProcessor.
Definition at line 3695 of file processor.cpp.
References EMAN::EMData::get_attr(), and LOGWARN.
03696 { 03697 if (!image) { 03698 LOGWARN("NULL Image"); 03699 return 0; 03700 } 03701 float maxval = image->get_attr("maximum"); 03702 float minval = image->get_attr("minimum"); 03703 return (maxval + minval) / 2; 03704 }
string EMAN::NormalizeMaxMinProcessor::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 4360 of file processor.h.
04361 { 04362 return "normalizes an image. mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;"; 04363 }
string EMAN::NormalizeMaxMinProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 4350 of file processor.h.
References NAME.
04351 { 04352 return NAME; 04353 }
static Processor* EMAN::NormalizeMaxMinProcessor::NEW | ( | ) | [inline, static] |
Definition at line 4355 of file processor.h.
04356 { 04357 return new NormalizeMaxMinProcessor(); 04358 }
const string NormalizeMaxMinProcessor::NAME = "normalize.maxmin" [static] |