#include <processor.h>
Inheritance diagram for EMAN::LaplacianProcessor:
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 Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "math.laplacian" |
Protected Member Functions | |
void | create_kernel () const |
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 2868 of file processor.h.
void LaplacianProcessor::create_kernel | ( | ) | const [protected, virtual] |
Implements EMAN::AreaProcessor.
Definition at line 1642 of file processor.cpp.
References EMAN::AreaProcessor::areasize, EMAN::AreaProcessor::kernel, and EMAN::AreaProcessor::nz.
01643 { 01644 if (nz == 1) { 01645 memset(kernel, 0, areasize * areasize); 01646 kernel[1] = -0.25f; 01647 kernel[3] = -0.25f; 01648 kernel[5] = -0.25f; 01649 kernel[7] = -0.25f; 01650 kernel[4] = 1; 01651 } 01652 else { 01653 memset(kernel, 0, (size_t)areasize * areasize * areasize); 01654 kernel[4] = -1.0f / 6.0f; 01655 kernel[10] = -1.0f / 6.0f; 01656 kernel[12] = -1.0f / 6.0f; 01657 kernel[14] = -1.0f / 6.0f; 01658 kernel[16] = -1.0f / 6.0f; 01659 kernel[22] = -1.0f / 6.0f; 01660 kernel[13] = 1; 01661 } 01662 }
string EMAN::LaplacianProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor.
Definition at line 2880 of file processor.h.
02881 { 02882 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)."; 02883 }
string EMAN::LaplacianProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 2871 of file processor.h.
References NAME.
02872 { 02873 return NAME; 02874 }
static Processor* EMAN::LaplacianProcessor::NEW | ( | ) | [inline, static] |
const string LaplacianProcessor::NAME = "math.laplacian" [static] |