#include <processor.h>
Inheritance diagram for EMAN::LowpassGaussProcessor:
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 956 of file processor.h.
void LowpassGaussProcessor::create_radial_func | ( | vector< float > & | radial_mask | ) | const [protected, virtual] |
Implements EMAN::FourierProcessor.
Definition at line 1206 of file processor.cpp.
References EMAN::LowpassFourierProcessor::lowpass, and x.
01207 { 01208 // printf("rms = %d lp = %f\n",radial_mask.size(),lowpass); 01209 // Assert(radial_mask.size() > 0); // not true, negative numbers do inverse filter processing 01210 float x = 0.0f , step = 0.5f/radial_mask.size(); 01211 float sig = 1; 01212 if (lowpass > 0) { 01213 sig = -1; 01214 } 01215 01216 for (size_t i = 0; i < radial_mask.size(); i++) { 01217 radial_mask[i] = exp(sig * x * x / (lowpass * lowpass)); 01218 x += step; 01219 } 01220 01221 }
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 969 of file processor.h.
00970 { 00971 return "processor radial function: if lowpass > 0, f(x) = exp(-x*x/(lowpass*lowpass)); else f(x) = exp(x*x/(lowpass*lowpass));"; 00972 }
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 959 of file processor.h.
References NAME.
00960 { 00961 return NAME; 00962 }
static Processor* EMAN::LowpassGaussProcessor::NEW | ( | ) | [inline, static] |
Definition at line 964 of file processor.h.
00965 { 00966 return new LowpassGaussProcessor(); 00967 }
const string LowpassGaussProcessor::NAME = "eman1.filter.lowpass.gaussian" [static] |