#include <processor.h>
Inheritance diagram for EMAN::ToZeroProcessor:
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 | |
static Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "threshold.belowtozero" |
Protected Member Functions | |
void | process_pixel (float *x) const |
minval |
Definition at line 1441 of file processor.h.
string EMAN::ToZeroProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Implements EMAN::Processor.
Definition at line 1459 of file processor.h.
string EMAN::ToZeroProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 1444 of file processor.h.
References NAME.
01445 { 01446 return NAME; 01447 }
TypeDict EMAN::ToZeroProcessor::get_param_types | ( | ) | const [inline, virtual] |
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 1452 of file processor.h.
References EMAN::EMObject::FLOAT, and EMAN::TypeDict::put().
01453 { 01454 TypeDict d; 01455 d.put("minval", EMObject::FLOAT, "Everything below this value is set to zero"); 01456 return d; 01457 }
static Processor* EMAN::ToZeroProcessor::NEW | ( | ) | [inline, static] |
void EMAN::ToZeroProcessor::process_pixel | ( | float * | x | ) | const [inline, protected, virtual] |
Implements EMAN::RealPixelProcessor.
Definition at line 1467 of file processor.h.
References EMAN::RealPixelProcessor::value.
const string ToZeroProcessor::NAME = "threshold.belowtozero" [static] |