#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 | |
Processor * | NEW () |
Static Public Attributes | |
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 972 of file processor.h.
|
Definition at line 975 of file processor.h. 00975 :sigma(0) 00976 { 00977 }
|
|
Implements EMAN::FourierProcessor. Definition at line 1260 of file processor.cpp. References Assert, sigma, EMAN::Dict::size(), and x. 01261 { 01262 01263 Assert(radial_mask.size() > 0); 01264 float x = 0.0f , nqstep = 0.5f/radial_mask.size(); 01265 size_t size=radial_mask.size(); 01266 float var = sigma*sigma; 01267 for (size_t i = 0; i < size; i++) { 01268 radial_mask[i] = ((x*x - var)/var*var)*exp(-x*x/2*var); 01269 x += nqstep; 01270 } 01271 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 988 of file processor.h. 00989 { 00990 return "processor radial function: f(x) = ((x^2 - s^2)/s^4)e^-(x^2/2s^2)"; 00991 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 979 of file processor.h. 00980 {
00981 return NAME;
00982 }
|
|
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 999 of file processor.h. References EMAN::TypeDict::put(). 01000 { 01001 TypeDict d; 01002 d.put("sigma", EMObject::FLOAT, "LoG sigma"); 01003 return d; 01004 }
|
|
Definition at line 983 of file processor.h. 00984 { 00985 return new LoGFourierProcessor(); 00986 }
|
|
Set the processor parameters using a key/value dictionary.
Reimplemented from EMAN::Processor. Definition at line 993 of file processor.h.
|
|
Definition at line 75 of file processor.cpp. |
|
Definition at line 1012 of file processor.h. Referenced by create_radial_func(). |