#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 | |
static Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "math.localmax" |
Protected Member Functions | |
void | process_pixel (float *pixel, const float *data, int n) const |
Definition at line 3101 of file processor.h.
string EMAN::BoxMaxProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Implements EMAN::Processor.
Definition at line 3113 of file processor.h.
string EMAN::BoxMaxProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 3104 of file processor.h.
References NAME.
03105 { 03106 return NAME; 03107 }
static Processor* EMAN::BoxMaxProcessor::NEW | ( | ) | [inline, static] |
void EMAN::BoxMaxProcessor::process_pixel | ( | float * | pixel, | |
const float * | data, | |||
int | n | |||
) | const [inline, protected, virtual] |
Implements EMAN::BoxStatProcessor.
Definition at line 3121 of file processor.h.
03122 { 03123 float maxval = -FLT_MAX; 03124 for (int i = 0; i < n; i++) 03125 { 03126 if (data[i] > maxval) { 03127 maxval = data[i]; 03128 } 03129 } 03130 *pixel = maxval; 03131 }
const string BoxMaxProcessor::NAME = "math.localmax" [static] |