#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 | |
Processor * | NEW () |
Static Public Attributes | |
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 4392 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 3782 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03783 { 03784 if (!image) { 03785 LOGWARN("NULL Image"); 03786 return 0; 03787 } 03788 float maxval = image->get_attr("maximum"); 03789 float minval = image->get_attr("minimum"); 03790 return (maxval - minval) / 2; 03791 }
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3771 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03772 { 03773 if (!image) { 03774 LOGWARN("NULL Image"); 03775 return 0; 03776 } 03777 float maxval = image->get_attr("maximum"); 03778 float minval = image->get_attr("minimum"); 03779 return (maxval + minval) / 2; 03780 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4405 of file processor.h. 04406 { 04407 return "normalizes an image. mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;"; 04408 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4395 of file processor.h. 04396 {
04397 return NAME;
04398 }
|
|
Definition at line 4400 of file processor.h. 04401 { 04402 return new NormalizeMaxMinProcessor(); 04403 }
|
|
Definition at line 152 of file processor.cpp. |