#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 | |
Processor * | NEW () |
Static Public Attributes | |
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 2913 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 1718 of file processor.cpp. 01719 { 01720 if (nz == 1) { 01721 memset(kernel, 0, areasize * areasize); 01722 kernel[1] = -0.25f; 01723 kernel[3] = -0.25f; 01724 kernel[5] = -0.25f; 01725 kernel[7] = -0.25f; 01726 kernel[4] = 1; 01727 } 01728 else { 01729 memset(kernel, 0, (size_t)areasize * areasize * areasize); 01730 kernel[4] = -1.0f / 6.0f; 01731 kernel[10] = -1.0f / 6.0f; 01732 kernel[12] = -1.0f / 6.0f; 01733 kernel[14] = -1.0f / 6.0f; 01734 kernel[16] = -1.0f / 6.0f; 01735 kernel[22] = -1.0f / 6.0f; 01736 kernel[13] = 1; 01737 } 01738 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2925 of file processor.h. 02926 { 02927 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)."; 02928 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2916 of file processor.h. 02917 {
02918 return NAME;
02919 }
|
|
Definition at line 2920 of file processor.h. 02921 { 02922 return new LaplacianProcessor(); 02923 }
|
|
Definition at line 114 of file processor.cpp. |