#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 2927 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 2939 of file processor.h. 02940 { 02941 return "pixel = standard deviation of values surrounding pixel."; 02942 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2930 of file processor.h. 02931 {
02932 return NAME;
02933 }
|
|
Definition at line 2934 of file processor.h. 02935 { 02936 return new BoxSigmaProcessor(); 02937 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 2947 of file processor.h. 02948 { 02949 float sum = 0; 02950 float square_sum = 0; 02951 for (int i = 0; i < n; i++) 02952 { 02953 sum += data[i]; 02954 square_sum += data[i] * data[i]; 02955 } 02956 02957 float mean = sum / n; 02958 *pixel = sqrt(square_sum / n - mean * mean); 02959 }
|
|
Definition at line 115 of file processor.cpp. |