#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 2842 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 2854 of file processor.h. 02855 { 02856 return "pixel = standard deviation of values surrounding pixel."; 02857 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2845 of file processor.h. 02846 {
02847 return NAME;
02848 }
|
|
Definition at line 2849 of file processor.h. 02850 { 02851 return new BoxSigmaProcessor(); 02852 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 2862 of file processor.h. 02863 { 02864 float sum = 0; 02865 float square_sum = 0; 02866 for (int i = 0; i < n; i++) 02867 { 02868 sum += data[i]; 02869 square_sum += data[i] * data[i]; 02870 } 02871 02872 float mean = sum / n; 02873 *pixel = sqrt(square_sum / n - mean * mean); 02874 }
|
|
Definition at line 112 of file processor.cpp. |