#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 3020 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 3032 of file processor.h. 03033 { 03034 return "peak processor: pixel = max of values surrounding pixel."; 03035 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3023 of file processor.h. 03024 {
03025 return NAME;
03026 }
|
|
Definition at line 3027 of file processor.h. 03028 { 03029 return new BoxMaxProcessor(); 03030 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3040 of file processor.h. References data. 03041 { 03042 float maxval = -FLT_MAX; 03043 for (int i = 0; i < n; i++) 03044 { 03045 if (data[i] > maxval) { 03046 maxval = data[i]; 03047 } 03048 } 03049 *pixel = maxval; 03050 }
|
|
Definition at line 118 of file processor.cpp. |