#include <processor.h>
Inheritance diagram for EMAN::FiniteProcessor:
Public Member Functions | |
FiniteProcessor () | |
string | get_name () const |
Get the processor's name. | |
void | set_params (const Dict &new_params) |
Set the processor parameters using a key/value dictionary. | |
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 = "math.finite" |
Protected Member Functions | |
void | process_pixel (float *x) const |
Private Attributes | |
float | to |
to | Pixels which are not finite will be set to this value |
Definition at line 2109 of file processor.h.
|
Definition at line 2112 of file processor.h. 02112 :to(0) 02113 { 02114 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 2139 of file processor.h. 02140 { 02141 return "f(x) = f(x) if f(x) is finite | to if f(x) is not finite"; 02142 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2116 of file processor.h. 02117 {
02118 return NAME;
02119 }
|
|
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 2132 of file processor.h. References EMAN::TypeDict::put(). 02133 { 02134 TypeDict d; 02135 d.put("to", EMObject::FLOAT, "Pixels which are not finite will be set to this value"); 02136 return d; 02137 }
|
|
Definition at line 2121 of file processor.h. 02122 { 02123 return new FiniteProcessor(); 02124 }
|
|
Implements EMAN::RealPixelProcessor. Definition at line 486 of file processor.cpp. References EMAN::Util::goodf(), and x. 00487 { 00488 if ( !Util::goodf(x) ) { 00489 *x = to; 00490 } 00491 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::RealPixelProcessor. Definition at line 2126 of file processor.h. References EMAN::Dict::has_key().
|
|
Definition at line 100 of file processor.cpp. |
|
Definition at line 2152 of file processor.h. |