#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 3017 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 3029 of file processor.h. 03030 { 03031 return "pixel = standard deviation of values surrounding pixel."; 03032 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3020 of file processor.h. 03021 {
03022 return NAME;
03023 }
|
|
Definition at line 3024 of file processor.h. 03025 { 03026 return new BoxSigmaProcessor(); 03027 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3037 of file processor.h. 03038 { 03039 float sum = 0; 03040 float square_sum = 0; 03041 for (int i = 0; i < n; i++) 03042 { 03043 sum += data[i]; 03044 square_sum += data[i] * data[i]; 03045 } 03046 03047 float mean = sum / n; 03048 *pixel = sqrt(square_sum / n - mean * mean); 03049 }
|
|
Definition at line 117 of file processor.cpp. |