#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 4278 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 3663 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03664 { 03665 if (!image) { 03666 LOGWARN("NULL Image"); 03667 return 0; 03668 } 03669 float maxval = image->get_attr("maximum"); 03670 float minval = image->get_attr("minimum"); 03671 return (maxval - minval) / 2; 03672 }
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3652 of file processor.cpp. References EMAN::EMData::get_attr(), and LOGWARN. 03653 { 03654 if (!image) { 03655 LOGWARN("NULL Image"); 03656 return 0; 03657 } 03658 float maxval = image->get_attr("maximum"); 03659 float minval = image->get_attr("minimum"); 03660 return (maxval + minval) / 2; 03661 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4291 of file processor.h. 04292 { 04293 return "normalizes an image. mean -> (maxval-minval)/2; std dev = (maxval+minval)/2;"; 04294 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4281 of file processor.h. 04282 {
04283 return NAME;
04284 }
|
|
Definition at line 4286 of file processor.h. 04287 { 04288 return new NormalizeMaxMinProcessor(); 04289 }
|
|
Definition at line 151 of file processor.cpp. |