#include <util.h>
Public Member Functions | |
sincBlackman (int M_, float fc_, int ntable_=1999) | |
virtual | ~sincBlackman () |
float | sBwin_tab (float x) const |
int | get_sB_size () const |
Return the size of the kernel. | |
Protected Member Functions | |
virtual void | build_sBtable () |
Protected Attributes | |
int | M |
float | fc |
kernel size | |
int | ntable |
cut-off frequency | |
vector< float > | sBtable |
float | fltb |
Tabulate kernel for speed. |
|
Definition at line 1965 of file util_sparx.cpp. References build_sBtable(). 01966 : M(M_), fc(fc_), ntable(ntable_) { 01967 // Sinc-Blackman kernel 01968 build_sBtable(); 01969 }
|
|
Definition at line 269 of file util.h. 00439 {
|
|
Definition at line 1971 of file util_sparx.cpp. References fc, fltb, M, ntable, EMAN::Util::round(), sBtable, twopi, and x. Referenced by sincBlackman(). 01971 { 01972 sBtable.resize(ntable+1); 01973 int ltab = int(round(float(ntable)/1.25f)); 01974 int M2 = M/2; 01975 fltb = float(ltab)/M2; 01976 for (int i=ltab+1; i <= ntable; i++) sBtable[i] = 0.0f; 01977 float x = 1.0e-7f; 01978 sBtable[0] = (float)(sin(twopi*fc*x)/x*(0.52-0.5*cos(twopi*(x-M2)/M)+0.08*cos(2*twopi*(x-M2)/M))); 01979 for (int i=1; i <= ltab; i++) { 01980 x = float(i)/fltb; 01981 sBtable[i] = (float)(sin(twopi*fc*x)/x*(0.52-0.5*cos(twopi*(x-M2)/M)+0.08*cos(2*twopi*(x-M2)/M))); 01982 //cout << " "<<x<<" "<<sBtable[i] <<endl; 01983 } 01984 }
|
|
Return the size of the kernel.
Definition at line 277 of file util.h. Referenced by EMAN::EMData::get_pixel_filtered(). 00439 {
|
|
Definition at line 271 of file util.h. Referenced by EMAN::EMData::get_pixel_filtered(). 00439 {
|
|
kernel size
Definition at line 262 of file util.h. Referenced by build_sBtable(). |
|
Tabulate kernel for speed.
Definition at line 266 of file util.h. Referenced by build_sBtable(). |
|
Definition at line 261 of file util.h. Referenced by build_sBtable(). |
|
cut-off frequency
Definition at line 263 of file util.h. Referenced by build_sBtable(). |
|
Definition at line 264 of file util.h. Referenced by build_sBtable(). |