#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 4394 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 3784 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03785 { 03786 if (!image) { 03787 LOGWARN("NULL Image"); 03788 return 0; 03789 } 03790 float maxval = image->get_attr("maximum"); 03791 float minval = image->get_attr("minimum"); 03792 return (maxval - minval) / 2; 03793 }
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3773 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03774 { 03775 if (!image) { 03776 LOGWARN("NULL Image"); 03777 return 0; 03778 } 03779 float maxval = image->get_attr("maximum"); 03780 float minval = image->get_attr("minimum"); 03781 return (maxval + minval) / 2; 03782 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4407 of file processor.h. 04408 { 04409 return "normalizes an image. mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;"; 04410 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4397 of file processor.h. 04398 {
04399 return NAME;
04400 }
|
|
Definition at line 4402 of file processor.h. 04403 { 04404 return new NormalizeMaxMinProcessor(); 04405 }
|
|
Definition at line 152 of file processor.cpp. |