#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 3058 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 3070 of file processor.h. 03071 {
03072 return "peak processor: pixel = max of values surrounding pixel.";
03073 }
|
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3061 of file processor.h. 03062 {
03063 return NAME;
03064 }
|
|
|
Definition at line 3065 of file processor.h. 03066 {
03067 return new BoxMaxProcessor();
03068 }
|
|
||||||||||||||||
|
Implements EMAN::BoxStatProcessor. Definition at line 3078 of file processor.h. References data. 03079 {
03080 float maxval = -FLT_MAX;
03081 for (int i = 0; i < n; i++)
03082 {
03083 if (data[i] > maxval) {
03084 maxval = data[i];
03085 }
03086 }
03087 *pixel = maxval;
03088 }
|
|
|
Definition at line 124 of file processor.cpp. |
1.3.9.1