#include <processor.h>
Inheritance diagram for EMAN::BoxSigmaProcessor:
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 = "math.localsigma" |
Protected Member Functions | |
void | process_pixel (float *pixel, const float *data, int n) const |
Definition at line 3064 of file processor.h.
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 3076 of file processor.h. 03077 { 03078 return "pixel = standard deviation of values surrounding pixel."; 03079 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3067 of file processor.h. 03068 {
03069 return NAME;
03070 }
|
|
Definition at line 3071 of file processor.h. 03072 { 03073 return new BoxSigmaProcessor(); 03074 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3084 of file processor.h. 03085 { 03086 float sum = 0; 03087 float square_sum = 0; 03088 for (int i = 0; i < n; i++) 03089 { 03090 sum += data[i]; 03091 square_sum += data[i] * data[i]; 03092 } 03093 03094 float mean = sum / n; 03095 *pixel = sqrt(square_sum / n - mean * mean); 03096 }
|
|
Definition at line 117 of file processor.cpp. |