#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 2719 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 2751 of file processor.h. 02752 { 02753 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2731 of file processor.h. 02732 { 02733 return "Contraction of data, if any nearest neighbor is 0, value -> 0, generally used iteratively"; 02734 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2722 of file processor.h. 02723 {
02724 return NAME;
02725 }
|
|
Definition at line 2726 of file processor.h. 02727 { 02728 return new ZeroConstantProcessor(); 02729 }
|
|
Reimplemented from EMAN::AreaProcessor. Definition at line 2739 of file processor.h. References matrix(). 02740 { 02741 if (*pixel != 0) 02742 { 02743 if (*pixel == matrix[1] || *pixel == matrix[3] || *pixel == matrix[5] || 02744 *pixel == matrix[7] || matrix[1] == 0 || matrix[3] == 0 || 02745 matrix[5] == 0 || matrix[7] == 0) { 02746 *pixel = 0; 02747 } 02748 } 02749 }
|
|
Definition at line 110 of file processor.cpp. |