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

EMAN::MinusPeakProcessor Class Reference

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

#include <processor.h>

Inheritance diagram for EMAN::MinusPeakProcessor:

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

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.submax"

Protected Member Functions

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

Detailed Description

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

This is a sort of positive peak-finding algorithm.

Definition at line 3093 of file processor.h.


Member Function Documentation

string EMAN::MinusPeakProcessor::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 3105 of file processor.h.

03106                 {
03107                         return "peak processor: pixel = pixel - max of values surrounding pixel. This is a sort of positive peak-finding algorithm.";
03108                 }

string EMAN::MinusPeakProcessor::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 3096 of file processor.h.

03097                 {
03098                         return NAME;
03099                 }

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

Definition at line 3100 of file processor.h.

03101                 {
03102                         return new MinusPeakProcessor();
03103                 }

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

Implements EMAN::BoxStatProcessor.

Definition at line 3113 of file processor.h.

References data.

03114                 {
03115                         float maxval = -FLT_MAX;
03116                         for (int i = 0; i < n; i++)
03117                         {
03118                                 if (data[i] > maxval) {
03119                                         maxval = data[i];
03120                                 }
03121                         }
03122                          *pixel -= maxval;
03123                 }


Member Data Documentation

const string MinusPeakProcessor::NAME = "math.submax" [static]
 

Definition at line 125 of file processor.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jul 12 13:51:06 2011 for EMAN2 by  doxygen 1.3.9.1