#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 2293 of file processor.h.
|
Definition at line 2296 of file processor.h. 02296 :value(0) 02297 { 02298 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::CircularMaskProcessor. Definition at line 2322 of file processor.h. 02323 { 02324 return "step cutoff to a user-given value in both inner and outer circles."; 02325 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2300 of file processor.h. 02301 {
02302 return NAME;
02303 }
|
|
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 2315 of file processor.h. References EMAN::TypeDict::put(). 02316 { 02317 TypeDict d = CircularMaskProcessor::get_param_types(); 02318 d.put("value", EMObject::FLOAT, "step cutoff to this value. Default is 0."); 02319 return d; 02320 }
|
|
Definition at line 2304 of file processor.h. 02305 { 02306 return new MaskSharpProcessor(); 02307 }
|
|
Implements EMAN::CircularMaskProcessor. Definition at line 2330 of file processor.h. References dist(). 02331 { 02332 if (dist >= outer_radius_square || dist < inner_radius_square) 02333 { 02334 *pixel = value; 02335 } 02336 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::CircularMaskProcessor. Definition at line 2309 of file processor.h. 02310 { 02311 CircularMaskProcessor::set_params(new_params); 02312 value = params.set_default("value",0.0f); 02313 }
|
|
Definition at line 102 of file processor.cpp. |
|
Definition at line 2338 of file processor.h. |