#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 2778 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 1648 of file processor.cpp. 01649 { 01650 if (nz == 1) { 01651 memset(kernel, 0, areasize * areasize); 01652 kernel[1] = -0.25f; 01653 kernel[3] = -0.25f; 01654 kernel[5] = -0.25f; 01655 kernel[7] = -0.25f; 01656 kernel[4] = 1; 01657 } 01658 else { 01659 memset(kernel, 0, (size_t)areasize * areasize * areasize); 01660 kernel[4] = -1.0f / 6.0f; 01661 kernel[10] = -1.0f / 6.0f; 01662 kernel[12] = -1.0f / 6.0f; 01663 kernel[14] = -1.0f / 6.0f; 01664 kernel[16] = -1.0f / 6.0f; 01665 kernel[22] = -1.0f / 6.0f; 01666 kernel[13] = 1; 01667 } 01668 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2790 of file processor.h. 02791 { 02792 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)."; 02793 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2781 of file processor.h. 02782 {
02783 return NAME;
02784 }
|
|
Definition at line 2785 of file processor.h. 02786 { 02787 return new LaplacianProcessor(); 02788 }
|
|
Definition at line 112 of file processor.cpp. |