#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 2872 of file processor.h.
|
|
Implements EMAN::AreaProcessor. Definition at line 1707 of file processor.cpp. 01708 {
01709 if (nz == 1) {
01710 memset(kernel, 0, areasize * areasize);
01711 kernel[1] = -0.25f;
01712 kernel[3] = -0.25f;
01713 kernel[5] = -0.25f;
01714 kernel[7] = -0.25f;
01715 kernel[4] = 1;
01716 }
01717 else {
01718 memset(kernel, 0, (size_t)areasize * areasize * areasize);
01719 kernel[4] = -1.0f / 6.0f;
01720 kernel[10] = -1.0f / 6.0f;
01721 kernel[12] = -1.0f / 6.0f;
01722 kernel[14] = -1.0f / 6.0f;
01723 kernel[16] = -1.0f / 6.0f;
01724 kernel[22] = -1.0f / 6.0f;
01725 kernel[13] = 1;
01726 }
01727 }
|
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2884 of file processor.h. 02885 {
02886 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).";
02887 }
|
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2875 of file processor.h. 02876 {
02877 return NAME;
02878 }
|
|
|
Definition at line 2879 of file processor.h. 02880 {
02881 return new LaplacianProcessor();
02882 }
|
|
|
Definition at line 120 of file processor.cpp. |
1.3.9.1