#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 4313 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 3617 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03618 { 03619 if (!image) { 03620 LOGWARN("NULL Image"); 03621 return 0; 03622 } 03623 float maxval = image->get_attr("maximum"); 03624 float minval = image->get_attr("minimum"); 03625 return (maxval - minval) / 2; 03626 }
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3606 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03607 { 03608 if (!image) { 03609 LOGWARN("NULL Image"); 03610 return 0; 03611 } 03612 float maxval = image->get_attr("maximum"); 03613 float minval = image->get_attr("minimum"); 03614 return (maxval + minval) / 2; 03615 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4326 of file processor.h. 04327 { 04328 return "normalizes an image. mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;"; 04329 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4316 of file processor.h. 04317 {
04318 return NAME;
04319 }
|
|
Definition at line 4321 of file processor.h. 04322 { 04323 return new NormalizeMaxMinProcessor(); 04324 }
|
|
Definition at line 151 of file processor.cpp. |