#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 3021 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 3033 of file processor.h. 03034 {
03035 return "pixel = standard deviation of values surrounding pixel.";
03036 }
|
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3024 of file processor.h. 03025 {
03026 return NAME;
03027 }
|
|
|
Definition at line 3028 of file processor.h. 03029 {
03030 return new BoxSigmaProcessor();
03031 }
|
|
||||||||||||||||
|
Implements EMAN::BoxStatProcessor. Definition at line 3041 of file processor.h. 03042 {
03043 float sum = 0;
03044 float square_sum = 0;
03045 for (int i = 0; i < n; i++)
03046 {
03047 sum += data[i];
03048 square_sum += data[i] * data[i];
03049 }
03050
03051 float mean = sum / n;
03052 *pixel = sqrt(square_sum / n - mean * mean);
03053 }
|
|
|
Definition at line 123 of file processor.cpp. |
1.3.9.1