EMAN::BoxMaxProcessor Class Reference

peak processor: pixel = max of values surrounding pixel. More...

#include <processor.h>

Inheritance diagram for EMAN::BoxMaxProcessor:

Inheritance graph
[legend]
Collaboration diagram for EMAN::BoxMaxProcessor:

Collaboration graph
[legend]

List of all members.

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 ProcessorNEW ()

Protected Member Functions

void process_pixel (float *pixel, const float *data, int n) const


Detailed Description

peak processor: pixel = max of values surrounding pixel.

Definition at line 2837 of file processor.h.


Member Function Documentation

string EMAN::BoxMaxProcessor::get_name (  )  const [inline, virtual]

Get the processor's name.

Each processor is identified by a unique name.

Returns:
The processor's name.

Implements EMAN::Processor.

Definition at line 2840 of file processor.h.

02841                 {
02842                         return "math.localmax";
02843                 }

static Processor* EMAN::BoxMaxProcessor::NEW (  )  [inline, static]

Definition at line 2844 of file processor.h.

02845                 {
02846                         return new BoxMaxProcessor();
02847                 }

string EMAN::BoxMaxProcessor::get_desc (  )  const [inline, virtual]

Get the descrition of this specific processor.

This function must be overwritten by a subclass.

Returns:
The description of this processor.

Implements EMAN::Processor.

Definition at line 2849 of file processor.h.

02850                 {
02851                         return "peak processor: pixel = max of values surrounding pixel.";
02852                 }

void EMAN::BoxMaxProcessor::process_pixel ( float *  pixel,
const float *  data,
int  n 
) const [inline, protected, virtual]

Implements EMAN::BoxStatProcessor.

Definition at line 2855 of file processor.h.

02856                 {
02857                         float maxval = -FLT_MAX;
02858                         for (int i = 0; i < n; i++)
02859                         {
02860                                 if (data[i] > maxval) {
02861                                         maxval = data[i];
02862                                 }
02863                         }
02864                          *pixel = maxval;
02865                 }


The documentation for this class was generated from the following file:

Generated on Sat Nov 21 02:20:29 2009 for EMAN2 by  doxygen 1.5.6