#include <processor.h>
Inheritance diagram for EMAN::BoxMaxProcessor:
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.localmax" |
Protected Member Functions | |
void | process_pixel (float *pixel, const float *data, int n) const |
Definition at line 3055 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 3067 of file processor.h. 03068 { 03069 return "peak processor: pixel = max of values surrounding pixel."; 03070 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3058 of file processor.h. 03059 {
03060 return NAME;
03061 }
|
|
Definition at line 3062 of file processor.h. 03063 { 03064 return new BoxMaxProcessor(); 03065 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3075 of file processor.h. References data. 03076 { 03077 float maxval = -FLT_MAX; 03078 for (int i = 0; i < n; i++) 03079 { 03080 if (data[i] > maxval) { 03081 maxval = data[i]; 03082 } 03083 } 03084 *pixel = maxval; 03085 }
|
|
Definition at line 118 of file processor.cpp. |