EMAN2
|
CircularMaskProcessor applies a circular mask to the data.This is the base class for specific circular mask processors.Its subclass must implement process_dist_pixel(). More...
#include <processor.h>
Public Member Functions | |
CircularMaskProcessor () | |
void | set_params (const Dict &new_params) |
Set the processor parameters using a key/value dictionary. More... | |
string | get_desc () const |
Get the descrition of this specific processor. More... | |
TypeDict | get_param_types () const |
Get processor parameter information in a dictionary. More... | |
Public Member Functions inherited from EMAN::CoordinateProcessor | |
CoordinateProcessor () | |
void | process_inplace (EMData *image) |
To process an image in-place. More... | |
Public Member Functions inherited from EMAN::Processor | |
virtual | ~Processor () |
virtual EMData * | process (const EMData *const image) |
To proccess an image out-of-place. More... | |
virtual void | process_list_inplace (vector< EMData * > &images) |
To process multiple images using the same algorithm. More... | |
virtual string | get_name () const =0 |
Get the processor's name. More... | |
virtual Dict | get_params () const |
Get the processor parameters in a key/value dictionary. More... | |
Protected Member Functions | |
void | calc_locals (EMData *image) |
bool | is_valid () const |
void | process_pixel (float *pixel, int xi, int yi, int zi) const |
virtual void | process_dist_pixel (float *pixel, float dist) const =0 |
Protected Attributes | |
float | inner_radius |
float | outer_radius |
float | inner_radius_square |
float | outer_radius_square |
float | dx |
float | dy |
float | dz |
float | xc |
float | yc |
float | zc |
Protected Attributes inherited from EMAN::CoordinateProcessor | |
int | nx |
int | ny |
int | nz |
float | mean |
float | sigma |
float | maxval |
bool | is_complex |
Protected Attributes inherited from EMAN::Processor | |
Dict | params |
CircularMaskProcessor applies a circular mask to the data.This is the base class for specific circular mask processors.Its subclass must implement process_dist_pixel().
inner_radius | inner mask radius. optional, default=-1 |
outer_radius | outer mask radius |
dx | Modify mask center by dx relative to the default center nx/2 |
dy | Modify mask center by dy relative to the default center ny/2 |
dz | Modify mask center by dz relative to the default center nz/2 |
Definition at line 3720 of file processor.h.
|
inline |
Definition at line 3723 of file processor.h.
|
protectedvirtual |
Reimplemented from EMAN::CoordinateProcessor.
Reimplemented in EMAN::MaskGaussInvProcessor, and EMAN::MaskEdgeMeanProcessor.
Definition at line 2382 of file processor.cpp.
References dx, dy, dz, EMAN::Util::fast_floor(), inner_radius, inner_radius_square, EMAN::CoordinateProcessor::nx, EMAN::CoordinateProcessor::ny, EMAN::CoordinateProcessor::nz, outer_radius, outer_radius_square, xc, yc, and zc.
|
inlinevirtual |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Implements EMAN::Processor.
Reimplemented in EMAN::MaskSharpProcessor, EMAN::MaskSoftProcessor, EMAN::MaskEdgeMeanProcessor, EMAN::MaskNoiseProcessor, EMAN::MaskGaussProcessor, EMAN::MaskGaussInvProcessor, EMAN::MakeRadiusSquaredProcessor, EMAN::MakeRadiusProcessor, and EMAN::RadialProcessor.
Definition at line 3755 of file processor.h.
|
inlinevirtual |
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.
Reimplemented in EMAN::MaskSharpProcessor, EMAN::MaskSoftProcessor, EMAN::MaskEdgeMeanProcessor, EMAN::MaskGaussProcessor, EMAN::MaskGaussInvProcessor, and EMAN::RadialProcessor.
Definition at line 3760 of file processor.h.
References EMAN::EMObject::FLOAT, and EMAN::TypeDict::put().
Referenced by EMAN::MaskSharpProcessor::get_param_types(), EMAN::MaskSoftProcessor::get_param_types(), EMAN::MaskEdgeMeanProcessor::get_param_types(), and EMAN::MaskGaussProcessor::get_param_types().
|
inlineprotectedvirtual |
Reimplemented from EMAN::CoordinateProcessor.
Definition at line 3779 of file processor.h.
References EMAN::CoordinateProcessor::is_complex.
|
protectedpure virtual |
|
inlineprotectedvirtual |
Implements EMAN::CoordinateProcessor.
Definition at line 3784 of file processor.h.
References process_dist_pixel(), xc, yc, and zc.
|
inlinevirtual |
Set the processor parameters using a key/value dictionary.
new_params | A dictionary containing the new parameters. |
Reimplemented from EMAN::Processor.
Reimplemented in EMAN::MaskSharpProcessor, EMAN::MaskSoftProcessor, EMAN::MaskEdgeMeanProcessor, EMAN::MaskGaussProcessor, and EMAN::RadialProcessor.
Definition at line 3728 of file processor.h.
References dx, dy, dz, EMAN::Dict::has_key(), inner_radius, inner_radius_square, outer_radius, outer_radius_square, and EMAN::Processor::params.
Referenced by EMAN::MaskSharpProcessor::set_params(), EMAN::MaskSoftProcessor::set_params(), EMAN::MaskEdgeMeanProcessor::set_params(), EMAN::MaskGaussProcessor::set_params(), and EMAN::RadialProcessor::set_params().
|
protected |
Definition at line 3796 of file processor.h.
Referenced by EMAN::MaskGaussInvProcessor::calc_locals(), calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), and set_params().
|
protected |
Definition at line 3796 of file processor.h.
Referenced by EMAN::MaskGaussInvProcessor::calc_locals(), calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), and set_params().
|
protected |
Definition at line 3796 of file processor.h.
Referenced by EMAN::MaskGaussInvProcessor::calc_locals(), calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), and set_params().
|
protected |
Definition at line 3792 of file processor.h.
Referenced by calc_locals(), EMAN::MaskSoftProcessor::process_dist_pixel(), EMAN::MaskGaussProcessor::process_dist_pixel(), and set_params().
|
protected |
Definition at line 3794 of file processor.h.
Referenced by calc_locals(), EMAN::MaskSharpProcessor::process_dist_pixel(), EMAN::MaskSoftProcessor::process_dist_pixel(), EMAN::MaskEdgeMeanProcessor::process_dist_pixel(), EMAN::MaskNoiseProcessor::process_dist_pixel(), EMAN::MaskGaussProcessor::process_dist_pixel(), and set_params().
|
protected |
Definition at line 3793 of file processor.h.
Referenced by calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), EMAN::MaskSoftProcessor::process_dist_pixel(), and set_params().
|
protected |
Definition at line 3795 of file processor.h.
Referenced by calc_locals(), EMAN::MaskSharpProcessor::process_dist_pixel(), EMAN::MaskSoftProcessor::process_dist_pixel(), EMAN::MaskEdgeMeanProcessor::process_dist_pixel(), EMAN::MaskNoiseProcessor::process_dist_pixel(), EMAN::MaskGaussProcessor::process_dist_pixel(), and set_params().
|
protected |
Definition at line 3797 of file processor.h.
Referenced by EMAN::MaskGaussInvProcessor::calc_locals(), calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), and process_pixel().
|
protected |
Definition at line 3797 of file processor.h.
Referenced by EMAN::MaskGaussInvProcessor::calc_locals(), calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), and process_pixel().
|
protected |
Definition at line 3797 of file processor.h.
Referenced by EMAN::MaskGaussInvProcessor::calc_locals(), calc_locals(), EMAN::MaskEdgeMeanProcessor::calc_locals(), and process_pixel().