#include <processor.h>
Inheritance diagram for EMAN::CutToZeroProcessor:
Public Member Functions | |
string | get_name () const |
Get the processor's name. | |
TypeDict | get_param_types () const |
Get processor parameter information in a dictionary. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
Static Public Member Functions | |
Processor * | NEW () |
Static Public Attributes | |
const string | NAME = "threshold.belowtozero_cut" |
Protected Member Functions | |
void | process_pixel (float *x) const |
minval | the value that will be set to zero - all values below will also be set to zero. Values above get minval subtracted from them |
Definition at line 1652 of file processor.h.
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 1670 of file processor.h. 01671 { 01672 return "f(x) = x-minval if x >= minval; f(x) = 0 if x < minval."; 01673 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 1655 of file processor.h. 01656 {
01657 return NAME;
01658 }
|
|
Get processor parameter information in a dictionary. Each parameter has one record in the dictionary. Each record contains its name, data-type, and description.
Reimplemented from EMAN::Processor. Definition at line 1663 of file processor.h. References EMAN::TypeDict::put(). 01664 { 01665 TypeDict d; 01666 d.put("minval", EMObject::FLOAT, "the value that will be set to zero - all values below will also be set to zero. Values above get minval subtracted from them" ); 01667 return d; 01668 }
|
|
Definition at line 1659 of file processor.h. 01660 { 01661 return new CutToZeroProcessor(); 01662 }
|
|
Implements EMAN::RealPixelProcessor. Definition at line 1678 of file processor.h. References x.
|
|
Definition at line 91 of file processor.cpp. |