#include <processor.h>
Inheritance diagram for EMAN::LowpassTanhProcessor:
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.tanh" |
Protected Member Functions | |
void | create_radial_func (vector< float > &radial_mask) const |
Definition at line 1095 of file processor.h.
void LowpassTanhProcessor::create_radial_func | ( | vector< float > & | radial_mask | ) | const [protected, virtual] |
Implements EMAN::FourierProcessor.
Definition at line 1272 of file processor.cpp.
References Assert, EMAN::LowpassFourierProcessor::lowpass, and x.
01273 { 01274 Assert(radial_mask.size() > 0); 01275 float x = 0.0f , step = 0.5f/radial_mask.size(); 01276 for (size_t i = 0; i < radial_mask.size(); i++) { 01277 radial_mask[i] = tanh((lowpass - x)*60.0f) / 2.0f + 0.5f; 01278 x += step; 01279 } 01280 }
string EMAN::LowpassTanhProcessor::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 1107 of file processor.h.
string EMAN::LowpassTanhProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 1098 of file processor.h.
References NAME.
01099 { 01100 return NAME; 01101 }
static Processor* EMAN::LowpassTanhProcessor::NEW | ( | ) | [inline, static] |
Definition at line 1102 of file processor.h.
01103 { 01104 return new LowpassTanhProcessor(); 01105 }
const string LowpassTanhProcessor::NAME = "eman1.filter.lowpass.tanh" [static] |