#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 2964 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 2976 of file processor.h. 02977 { 02978 return "peak processor: pixel = max of values surrounding pixel."; 02979 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2967 of file processor.h. 02968 {
02969 return NAME;
02970 }
|
|
Definition at line 2971 of file processor.h. 02972 { 02973 return new BoxMaxProcessor(); 02974 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 2984 of file processor.h. References data. 02985 { 02986 float maxval = -FLT_MAX; 02987 for (int i = 0; i < n; i++) 02988 { 02989 if (data[i] > maxval) { 02990 maxval = data[i]; 02991 } 02992 } 02993 *pixel = maxval; 02994 }
|
|
Definition at line 116 of file processor.cpp. |