#include <processor.h>
Inheritance diagram for EMAN::LowpassSharpCutoffProcessor:
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 | |
Processor * | NEW () |
Static Public Attributes | |
const string | NAME = "eman1.filter.lowpass.sharp" |
Protected Member Functions | |
void | create_radial_func (vector< float > &radial_mask) const |
Definition at line 864 of file processor.h.
|
Implements EMAN::FourierProcessor. Definition at line 1064 of file processor.cpp. 01065 { 01066 Assert(radial_mask.size() > 0); 01067 float x = 0.0f , step = 0.5f/radial_mask.size(); 01068 #ifdef DEBUG 01069 printf("%d %f %f\n",(int)radial_mask.size(),lowpass,step); 01070 #endif 01071 for (size_t i = 0; i < radial_mask.size(); i++) { 01072 if (x <= lowpass) { 01073 radial_mask[i] = 1.0f; 01074 } 01075 else { 01076 radial_mask[i] = 0; 01077 } 01078 x += step; 01079 } 01080 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 877 of file processor.h. 00878 { 00879 return "processor radial function: if x <= lowpass, f(x) = 1; else f(x) = 0;"; 00880 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 867 of file processor.h. 00868 {
00869 return NAME;
00870 }
|
|
Definition at line 872 of file processor.h. 00873 { 00874 return new LowpassSharpCutoffProcessor(); 00875 }
|
|
Definition at line 70 of file processor.cpp. |