#include <processor.h>
Inheritance diagram for EMAN::BinarizeProcessor:
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.binary" |
Protected Member Functions | |
void | process_pixel (float *x) const |
value | The thresholding value. If a pixel value is equal to or above the threshold it is set to 1. If it is below it is set to 0 |
Definition at line 1855 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 1873 of file processor.h.
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 1858 of file processor.h. References NAME. 01859 { 01860 return NAME; 01861 }
|
|
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 1866 of file processor.h. References EMAN::EMObject::FLOAT, and EMAN::TypeDict::put(). 01867 { 01868 TypeDict d; 01869 d.put("value", EMObject::FLOAT, "The thresholding value. If a pixel value is equal to or above the threshold it is set to 1. If it is below it is set to 0" ); 01870 return d; 01871 }
|
|
Definition at line 1862 of file processor.h. 01863 { 01864 return new BinarizeProcessor(); 01865 }
|
|
Implements EMAN::RealPixelProcessor. Definition at line 1881 of file processor.h. References EMAN::RealPixelProcessor::value. 01882 { 01883 if (*x < value) 01884 { 01885 *x = 0; 01886 } 01887 else 01888 { 01889 *x = 1; 01890 } 01891 }
|
|
Definition at line 1878 of file processor.h. Referenced by get_name(). |