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

EMAN::LaplacianProcessor Class Reference

Discrete approximation to Laplacian. More...

#include <processor.h>

Inheritance diagram for EMAN::LaplacianProcessor:

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

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

Protected Member Functions

void create_kernel () const

Detailed Description

Discrete approximation to Laplacian.

Edge enchancement, but works poorly in the presence of noise. Laplacian processor (x -> d^2/dx^2 + d^2/dy^2 + d^2/dz^2).

Definition at line 2915 of file processor.h.


Member Function Documentation

void LaplacianProcessor::create_kernel  )  const [protected, virtual]
 

Implements EMAN::AreaProcessor.

Definition at line 1720 of file processor.cpp.

01721 {
01722         if (nz == 1) {
01723                 memset(kernel, 0, areasize * areasize);
01724                 kernel[1] = -0.25f;
01725                 kernel[3] = -0.25f;
01726                 kernel[5] = -0.25f;
01727                 kernel[7] = -0.25f;
01728                 kernel[4] = 1;
01729         }
01730         else {
01731                 memset(kernel, 0, (size_t)areasize * areasize * areasize);
01732                 kernel[4] = -1.0f / 6.0f;
01733                 kernel[10] = -1.0f / 6.0f;
01734                 kernel[12] = -1.0f / 6.0f;
01735                 kernel[14] = -1.0f / 6.0f;
01736                 kernel[16] = -1.0f / 6.0f;
01737                 kernel[22] = -1.0f / 6.0f;
01738                 kernel[13] = 1;
01739         }
01740 }

string EMAN::LaplacianProcessor::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.

Reimplemented from EMAN::AreaProcessor.

Definition at line 2927 of file processor.h.

02928                 {
02929                         return "Discrete approximation to Laplacian. Edge enchancement, but works poorly in the presence of noise. Laplacian processor (x -> d^2/dx^2 + d^2/dy^2 + d^2/dz^2).";
02930                 }

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

02919                 {
02920                         return NAME;
02921                 }

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

Definition at line 2922 of file processor.h.

02923                 {
02924                         return new LaplacianProcessor();
02925                 }


Member Data Documentation

const string LaplacianProcessor::NAME = "math.laplacian" [static]
 

Definition at line 114 of file processor.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jun 11 13:42:25 2013 for EMAN2 by  doxygen 1.3.9.1