#include <processor.h>
Inheritance diagram for EMAN::ZeroConstantProcessor:
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 = "mask.contract" |
Protected Member Functions | |
void | process_pixel (float *pixel, float, float, float, float *matrix) const |
void | create_kernel () const |
Definition at line 2895 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 2927 of file processor.h. 02928 { 02929 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2907 of file processor.h. 02908 { 02909 return "Contraction of data, if any nearest neighbor is 0, value -> 0, generally used iteratively"; 02910 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2898 of file processor.h. 02899 {
02900 return NAME;
02901 }
|
|
Definition at line 2902 of file processor.h. 02903 { 02904 return new ZeroConstantProcessor(); 02905 }
|
|
Reimplemented from EMAN::AreaProcessor. Definition at line 2915 of file processor.h. References matrix(). 02916 { 02917 if (*pixel != 0) 02918 { 02919 if (*pixel == matrix[1] || *pixel == matrix[3] || *pixel == matrix[5] || 02920 *pixel == matrix[7] || matrix[1] == 0 || matrix[3] == 0 || 02921 matrix[5] == 0 || matrix[7] == 0) { 02922 *pixel = 0; 02923 } 02924 } 02925 }
|
|
Definition at line 115 of file processor.cpp. |