#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 2383 of file processor.h.
|
Definition at line 2386 of file processor.h. 02386 :value(0) 02387 { 02388 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Reimplemented from EMAN::CircularMaskProcessor. Definition at line 2412 of file processor.h. 02413 { 02414 return "step cutoff to a user-given value in both inner and outer circles."; 02415 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 2390 of file processor.h. 02391 {
02392 return NAME;
02393 }
|
|
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 2405 of file processor.h. References EMAN::TypeDict::put(). 02406 { 02407 TypeDict d = CircularMaskProcessor::get_param_types(); 02408 d.put("value", EMObject::FLOAT, "step cutoff to this value. Default is 0."); 02409 return d; 02410 }
|
|
Definition at line 2394 of file processor.h. 02395 { 02396 return new MaskSharpProcessor(); 02397 }
|
|
Implements EMAN::CircularMaskProcessor. Definition at line 2420 of file processor.h. References dist(). 02421 { 02422 if (dist >= outer_radius_square || dist < inner_radius_square) 02423 { 02424 *pixel = value; 02425 } 02426 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::CircularMaskProcessor. Definition at line 2399 of file processor.h. 02400 { 02401 CircularMaskProcessor::set_params(new_params); 02402 value = params.set_default("value",0.0f); 02403 }
|
|
Definition at line 104 of file processor.cpp. |
|
Definition at line 2428 of file processor.h. |