#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 916 of file processor.h.
|
Implements EMAN::FourierProcessor. Definition at line 1099 of file processor.cpp. References EMAN::LowpassFourierProcessor::lowpass, and x. 01100 { 01101 // printf("rms = %d lp = %f\n",radial_mask.size(),lowpass); 01102 // Assert(radial_mask.size() > 0); // not true, negative numbers do inverse filter processing 01103 float x = 0.0f , step = 0.5f/radial_mask.size(); 01104 float sig = 1; 01105 if (lowpass > 0) { 01106 sig = -1; 01107 } 01108 01109 for (size_t i = 0; i < radial_mask.size(); i++) { 01110 radial_mask[i] = exp(sig * x * x / (lowpass * lowpass)); 01111 x += step; 01112 } 01113 01114 }
|
|
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 }
|
|
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 }
|
|
Definition at line 924 of file processor.h. 00925 { 00926 return new LowpassGaussProcessor(); 00927 }
|
|
Definition at line 934 of file processor.h. Referenced by get_name(). |