#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 2804 of file processor.h.
|
Implements EMAN::AreaProcessor. Definition at line 2836 of file processor.h. 02837 { 02838 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2816 of file processor.h. 02817 { 02818 return "Contraction of data, if any nearest neighbor is 0, value -> 0, generally used iteratively"; 02819 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2807 of file processor.h. 02808 {
02809 return NAME;
02810 }
|
|
Definition at line 2811 of file processor.h. 02812 { 02813 return new ZeroConstantProcessor(); 02814 }
|
|
Reimplemented from EMAN::AreaProcessor. Definition at line 2824 of file processor.h. References matrix(). 02825 { 02826 if (*pixel != 0) 02827 { 02828 if (*pixel == matrix[1] || *pixel == matrix[3] || *pixel == matrix[5] || 02829 *pixel == matrix[7] || matrix[1] == 0 || matrix[3] == 0 || 02830 matrix[5] == 0 || matrix[7] == 0) { 02831 *pixel = 0; 02832 } 02833 } 02834 }
|
|
Definition at line 113 of file processor.cpp. |