#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 3095 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 3107 of file processor.h.
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3098 of file processor.h. References NAME. 03099 { 03100 return NAME; 03101 }
|
|
Definition at line 3102 of file processor.h. 03103 { 03104 return new BoxMaxProcessor(); 03105 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 3115 of file processor.h. 03116 { 03117 float maxval = -FLT_MAX; 03118 for (int i = 0; i < n; i++) 03119 { 03120 if (data[i] > maxval) { 03121 maxval = data[i]; 03122 } 03123 } 03124 *pixel = maxval; 03125 }
|
|
Definition at line 3112 of file processor.h. Referenced by get_name(). |