#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 | |
static Processor * | NEW () |
Static Public Attributes | |
static 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 2935 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 2967 of file processor.h.
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2947 of file processor.h. 02948 { 02949 return "Contraction of data, if any nearest neighbor is 0, value -> 0, generally used iteratively"; 02950 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2938 of file processor.h. References NAME. 02939 { 02940 return NAME; 02941 }
|
|
Definition at line 2942 of file processor.h. 02943 { 02944 return new ZeroConstantProcessor(); 02945 }
|
|
Reimplemented from EMAN::AreaProcessor. Definition at line 2955 of file processor.h. 02956 { 02957 if (*pixel != 0) 02958 { 02959 if (*pixel == matrix[1] || *pixel == matrix[3] || *pixel == matrix[5] || 02960 *pixel == matrix[7] || matrix[1] == 0 || matrix[3] == 0 || 02961 matrix[5] == 0 || matrix[7] == 0) { 02962 *pixel = 0; 02963 } 02964 } 02965 }
|
|
Definition at line 2952 of file processor.h. Referenced by get_name(). |