#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 4316 of file processor.h.
|
|
Implements EMAN::NormalizeProcessor. Definition at line 3691 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03692 {
03693 if (!image) {
03694 LOGWARN("NULL Image");
03695 return 0;
03696 }
03697 float maxval = image->get_attr("maximum");
03698 float minval = image->get_attr("minimum");
03699 return (maxval - minval) / 2;
03700 }
|
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3680 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03681 {
03682 if (!image) {
03683 LOGWARN("NULL Image");
03684 return 0;
03685 }
03686 float maxval = image->get_attr("maximum");
03687 float minval = image->get_attr("minimum");
03688 return (maxval + minval) / 2;
03689 }
|
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4329 of file processor.h. 04330 {
04331 return "normalizes an image. mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;";
04332 }
|
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4319 of file processor.h. 04320 {
04321 return NAME;
04322 }
|
|
|
Definition at line 4324 of file processor.h. 04325 {
04326 return new NormalizeMaxMinProcessor();
04327 }
|
|
|
Definition at line 157 of file processor.cpp. |
1.3.9.1