#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 2941 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 2973 of file processor.h. 02974 { 02975 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2953 of file processor.h. 02954 { 02955 return "Contraction of data, if any nearest neighbor is 0, value -> 0, generally used iteratively"; 02956 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2944 of file processor.h. 02945 {
02946 return NAME;
02947 }
|
|
Definition at line 2948 of file processor.h. 02949 { 02950 return new ZeroConstantProcessor(); 02951 }
|
|
Reimplemented from EMAN::AreaProcessor. Definition at line 2961 of file processor.h. References matrix(). 02962 { 02963 if (*pixel != 0) 02964 { 02965 if (*pixel == matrix[1] || *pixel == matrix[3] || *pixel == matrix[5] || 02966 *pixel == matrix[7] || matrix[1] == 0 || matrix[3] == 0 || 02967 matrix[5] == 0 || matrix[7] == 0) { 02968 *pixel = 0; 02969 } 02970 } 02971 }
|
|
Definition at line 115 of file processor.cpp. |