#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 3062 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 3074 of file processor.h. 03075 { 03076 return "pixel = standard deviation of values surrounding pixel."; 03077 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3065 of file processor.h. 03066 {
03067 return NAME;
03068 }
|
|
Definition at line 3069 of file processor.h. 03070 { 03071 return new BoxSigmaProcessor(); 03072 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3082 of file processor.h. 03083 { 03084 float sum = 0; 03085 float square_sum = 0; 03086 for (int i = 0; i < n; i++) 03087 { 03088 sum += data[i]; 03089 square_sum += data[i] * data[i]; 03090 } 03091 03092 float mean = sum / n; 03093 *pixel = sqrt(square_sum / n - mean * mean); 03094 }
|
|
Definition at line 117 of file processor.cpp. |