#include <processor.h>


Public Member Functions | |
| MaskSharpProcessor () | |
| 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 | |
| static Processor * | NEW () |
Static Public Attributes | |
| static const string | NAME = "mask.sharp" |
Protected Member Functions | |
| void | process_dist_pixel (float *pixel, float dist) const |
Protected Attributes | |
| float | value |
| value | step cutoff to this value |
Definition at line 2324 of file processor.h.
| EMAN::MaskSharpProcessor::MaskSharpProcessor | ( | ) | [inline] |
| string EMAN::MaskSharpProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 2331 of file processor.h.
References NAME.
02332 { 02333 return NAME; 02334 }
| static Processor* EMAN::MaskSharpProcessor::NEW | ( | ) | [inline, static] |
Definition at line 2335 of file processor.h.
References MaskSharpProcessor().
02336 { 02337 return new MaskSharpProcessor(); 02338 }
| void EMAN::MaskSharpProcessor::set_params | ( | const Dict & | new_params | ) | [inline, virtual] |
Set the processor parameters using a key/value dictionary.
| new_params | A dictionary containing the new parameters. |
Reimplemented from EMAN::CircularMaskProcessor.
Definition at line 2340 of file processor.h.
References EMAN::Processor::params, EMAN::Dict::set_default(), EMAN::CircularMaskProcessor::set_params(), and value.
02341 { 02342 CircularMaskProcessor::set_params(new_params); 02343 value = params.set_default("value",0.0f); 02344 }
| TypeDict EMAN::MaskSharpProcessor::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::CircularMaskProcessor.
Definition at line 2346 of file processor.h.
References EMAN::EMObject::FLOAT, EMAN::CircularMaskProcessor::get_param_types(), and EMAN::TypeDict::put().
02347 { 02348 TypeDict d = CircularMaskProcessor::get_param_types(); 02349 d.put("value", EMObject::FLOAT, "step cutoff to this value. Default is 0."); 02350 return d; 02351 }
| string EMAN::MaskSharpProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Reimplemented from EMAN::CircularMaskProcessor.
Definition at line 2353 of file processor.h.
| void EMAN::MaskSharpProcessor::process_dist_pixel | ( | float * | pixel, | |
| float | dist | |||
| ) | const [inline, protected, virtual] |
Implements EMAN::CircularMaskProcessor.
Definition at line 2361 of file processor.h.
References EMAN::CircularMaskProcessor::inner_radius_square, EMAN::CircularMaskProcessor::outer_radius_square, and value.
02362 { 02363 if (dist >= outer_radius_square || dist < inner_radius_square) 02364 { 02365 *pixel = value; 02366 } 02367 }
const string MaskSharpProcessor::NAME = "mask.sharp" [static] |
float EMAN::MaskSharpProcessor::value [protected] |
1.5.6