#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 3089 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 3101 of file processor.h. 03102 { 03103 return "peak processor: pixel = pixel - max of values surrounding pixel. This is a sort of positive peak-finding algorithm."; 03104 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3092 of file processor.h. 03093 {
03094 return NAME;
03095 }
|
|
Definition at line 3096 of file processor.h. 03097 { 03098 return new MinusPeakProcessor(); 03099 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3109 of file processor.h. References data. 03110 { 03111 float maxval = -FLT_MAX; 03112 for (int i = 0; i < n; i++) 03113 { 03114 if (data[i] > maxval) { 03115 maxval = data[i]; 03116 } 03117 } 03118 *pixel -= maxval; 03119 }
|
|
Definition at line 120 of file processor.cpp. |