#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 2879 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 2891 of file processor.h. 02892 { 02893 return "peak processor: pixel = max of values surrounding pixel."; 02894 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2882 of file processor.h. 02883 {
02884 return NAME;
02885 }
|
|
Definition at line 2886 of file processor.h. 02887 { 02888 return new BoxMaxProcessor(); 02889 }
|
|
Implements EMAN::BoxStatProcessor. Definition at line 2899 of file processor.h. References data. 02900 { 02901 float maxval = -FLT_MAX; 02902 for (int i = 0; i < n; i++) 02903 { 02904 if (data[i] > maxval) { 02905 maxval = data[i]; 02906 } 02907 } 02908 *pixel = maxval; 02909 }
|
|
Definition at line 113 of file processor.cpp. |