#include <processor.h>
Inheritance diagram for EMAN::LoGFourierProcessor:
Public Member Functions | |
LoGFourierProcessor () | |
string | get_name () const |
Get the processor's name. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
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. | |
Static Public Member Functions | |
static Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "filter.LoG" |
Protected Member Functions | |
void | create_radial_func (vector< float > &radial_mask) const |
Private Attributes | |
float | sigma |
sigma | LoG sigma |
Definition at line 1071 of file processor.h.
EMAN::LoGFourierProcessor::LoGFourierProcessor | ( | ) | [inline] |
void LoGFourierProcessor::create_radial_func | ( | vector< float > & | radial_mask | ) | const [protected, virtual] |
Implements EMAN::FourierProcessor.
Definition at line 1269 of file processor.cpp.
References Assert, sigma, var(), and x.
01270 { 01271 01272 Assert(radial_mask.size() > 0); 01273 float x = 0.0f , nqstep = 0.5f/radial_mask.size(); 01274 size_t size=radial_mask.size(); 01275 float var = sigma*sigma; 01276 for (size_t i = 0; i < size; i++) { 01277 radial_mask[i] = ((x*x - var)/var*var)*exp(-x*x/2*var); 01278 x += nqstep; 01279 } 01280 }
string EMAN::LoGFourierProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Implements EMAN::Processor.
Definition at line 1087 of file processor.h.
string EMAN::LoGFourierProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 1078 of file processor.h.
References NAME.
01079 { 01080 return NAME; 01081 }
TypeDict EMAN::LoGFourierProcessor::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::FourierProcessor.
Definition at line 1098 of file processor.h.
References EMAN::EMObject::FLOAT, and EMAN::TypeDict::put().
01099 { 01100 TypeDict d; 01101 d.put("sigma", EMObject::FLOAT, "LoG sigma"); 01102 return d; 01103 }
static Processor* EMAN::LoGFourierProcessor::NEW | ( | ) | [inline, static] |
Definition at line 1082 of file processor.h.
References LoGFourierProcessor().
01083 { 01084 return new LoGFourierProcessor(); 01085 }
void EMAN::LoGFourierProcessor::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::Processor.
Definition at line 1092 of file processor.h.
References EMAN::Processor::params, and sigma.
const string LoGFourierProcessor::NAME = "filter.LoG" [static] |
float EMAN::LoGFourierProcessor::sigma [private] |