#include <processor.h>


Public Member Functions | |
| string | get_name () const |
| Get the processor's name. | |
| string | get_desc () const |
| Get the descrition of this specific processor. | |
Static Public Member Functions | |
| static Processor * | NEW () |
Static Public Attributes | |
| static const string | NAME = "eman1.filter.lowpass.gaussian" |
Protected Member Functions | |
| void | create_radial_func (vector< float > &radial_mask) const |
Definition at line 916 of file processor.h.
| string EMAN::LowpassGaussProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 919 of file processor.h.
References NAME.
00920 { 00921 return NAME; 00922 }
| static Processor* EMAN::LowpassGaussProcessor::NEW | ( | ) | [inline, static] |
Definition at line 924 of file processor.h.
00925 { 00926 return new LowpassGaussProcessor(); 00927 }
| string EMAN::LowpassGaussProcessor::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 929 of file processor.h.
00930 { 00931 return "processor radial function: if lowpass > 0, f(x) = exp(-x*x/(lowpass*lowpass)); else f(x) = exp(x*x/(lowpass*lowpass));"; 00932 }
| void LowpassGaussProcessor::create_radial_func | ( | vector< float > & | radial_mask | ) | const [protected, virtual] |
Implements EMAN::FourierProcessor.
Definition at line 1036 of file processor.cpp.
References EMAN::LowpassFourierProcessor::lowpass, and x.
01037 { 01038 // printf("rms = %d lp = %f\n",radial_mask.size(),lowpass); 01039 // Assert(radial_mask.size() > 0); // not true, negative numbers do inverse filter processing 01040 float x = 0.0f , step = 0.5f/radial_mask.size(); 01041 float sig = 1; 01042 if (lowpass > 0) { 01043 sig = -1; 01044 } 01045 01046 for (size_t i = 0; i < radial_mask.size(); i++) { 01047 radial_mask[i] = exp(sig * x * x / (lowpass * lowpass)); 01048 x += step; 01049 } 01050 01051 }
const string LowpassGaussProcessor::NAME = "eman1.filter.lowpass.gaussian" [static] |
1.5.6