#include <processor.h>
Inheritance diagram for EMAN::MaskSharpProcessor:
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 | |
Processor * | NEW () |
Static Public Attributes | |
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 2430 of file processor.h.
|
Definition at line 2433 of file processor.h. 02433 :value(0) 02434 { 02435 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::CircularMaskProcessor. Definition at line 2459 of file processor.h. 02460 { 02461 return "step cutoff to a user-given value in both inner and outer circles."; 02462 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2437 of file processor.h. 02438 {
02439 return NAME;
02440 }
|
|
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 2452 of file processor.h. References EMAN::TypeDict::put(). 02453 { 02454 TypeDict d = CircularMaskProcessor::get_param_types(); 02455 d.put("value", EMObject::FLOAT, "step cutoff to this value. Default is 0."); 02456 return d; 02457 }
|
|
Definition at line 2441 of file processor.h. 02442 { 02443 return new MaskSharpProcessor(); 02444 }
|
|
Implements EMAN::CircularMaskProcessor. Definition at line 2467 of file processor.h. References dist(). 02468 { 02469 if (dist >= outer_radius_square || dist < inner_radius_square) 02470 { 02471 *pixel = value; 02472 } 02473 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::CircularMaskProcessor. Definition at line 2446 of file processor.h. 02447 { 02448 CircularMaskProcessor::set_params(new_params); 02449 value = params.set_default("value",0.0f); 02450 }
|
|
Definition at line 104 of file processor.cpp. |
|
Definition at line 2475 of file processor.h. |