#include <processor.h>
Inheritance diagram for EMAN::MinusPeakProcessor:
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.submax" |
Protected Member Functions | |
void | process_pixel (float *pixel, const float *data, int n) const |
This is a sort of positive peak-finding algorithm.
Definition at line 2914 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 2926 of file processor.h. 02927 { 02928 return "peak processor: pixel = pixel - max of values surrounding pixel. This is a sort of positive peak-finding algorithm."; 02929 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2917 of file processor.h. 02918 {
02919 return NAME;
02920 }
|
|
Definition at line 2921 of file processor.h. 02922 { 02923 return new MinusPeakProcessor(); 02924 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 2934 of file processor.h. References data. 02935 { 02936 float maxval = -FLT_MAX; 02937 for (int i = 0; i < n; i++) 02938 { 02939 if (data[i] > maxval) { 02940 maxval = data[i]; 02941 } 02942 } 02943 *pixel -= maxval; 02944 }
|
|
Definition at line 114 of file processor.cpp. |