Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

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

ProcessorNEW ()

Static Public Attributes

const string NAME = "math.localmax"

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 2879 of file processor.h.


Member Function Documentation

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 2891 of file processor.h.

02892                 {
02893                         return "peak processor: pixel = max of values surrounding pixel.";
02894                 }

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 2882 of file processor.h.

02883                 {
02884                         return NAME;
02885                 }

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

Definition at line 2886 of file processor.h.

02887                 {
02888                         return new BoxMaxProcessor();
02889                 }

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

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                 }


Member Data Documentation

const string BoxMaxProcessor::NAME = "math.localmax" [static]
 

Definition at line 113 of file processor.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 13:47:55 2010 for EMAN2 by  doxygen 1.3.9.1