#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 2898 of file processor.h.
|
|
Implements EMAN::AreaProcessor. Definition at line 2930 of file processor.h. 02931 {
02932 }
|
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::AreaProcessor. Definition at line 2910 of file processor.h. 02911 {
02912 return "Contraction of data, if any nearest neighbor is 0, value -> 0, generally used iteratively";
02913 }
|
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2901 of file processor.h. 02902 {
02903 return NAME;
02904 }
|
|
|
Definition at line 2905 of file processor.h. 02906 {
02907 return new ZeroConstantProcessor();
02908 }
|
|
||||||||||||||||||||||||
|
Reimplemented from EMAN::AreaProcessor. Definition at line 2918 of file processor.h. References matrix(). 02919 {
02920 if (*pixel != 0)
02921 {
02922 if (*pixel == matrix[1] || *pixel == matrix[3] || *pixel == matrix[5] ||
02923 *pixel == matrix[7] || matrix[1] == 0 || matrix[3] == 0 ||
02924 matrix[5] == 0 || matrix[7] == 0) {
02925 *pixel = 0;
02926 }
02927 }
02928 }
|
|
|
Definition at line 121 of file processor.cpp. |
1.3.9.1