EMAN2
|
EMAN2Ctf is the default CTF model used in EMAN2. More...
#include <ctf.h>
Public Member Functions | |
vector< float > | get_snr () |
void | set_snr (const vector< float > &vf) |
vector< float > | get_background () |
void | set_background (const vector< float > &vf) |
EMAN2Ctf () | |
EMAN2Ctf (const vector< float > &vf) | |
~EMAN2Ctf () | |
vector< float > | compute_1d (int size, float ds, CtfType type, XYData *struct_factor=0) |
vector< float > | compute_1d_fromimage (int size, float ds, EMData *image) |
void | compute_2d_real (EMData *image, CtfType type, XYData *struct_factor=0) |
void | compute_2d_complex (EMData *image, CtfType type, XYData *struct_factor=0) |
int | from_string (const string &ctf) |
string | to_string () const |
void | from_dict (const Dict &dict) |
Dict | to_dict () const |
void | from_vector (const vector< float > &vctf) |
vector< float > | to_vector () const |
void | copy_from (const Ctf *new_ctf) |
bool | equal (const Ctf *ctf1) const |
float | zero (int n) const |
float | stos2 (float s, float dZ) |
float | get_phase () const |
void | set_phase (float phase) |
Public Member Functions inherited from EMAN::Ctf | |
virtual | ~Ctf () |
Public Attributes | |
float | dfdiff |
float | dfang |
float | ampcont |
float | dsbg |
vector< float > | background |
vector< float > | snr |
Public Attributes inherited from EMAN::Ctf | |
float | defocus |
float | bfactor |
float | voltage |
float | cs |
float | apix |
Private Member Functions | |
float | lambda () const |
float | df (float ang) const |
float | calc_noise (float s) const |
Additional Inherited Members | |
Public Types inherited from EMAN::Ctf | |
enum | CtfType { CTF_AMP , CTF_SIGN , CTF_BACKGROUND , CTF_SNR , CTF_SNR_SMOOTH , CTF_WIENER_FILTER , CTF_TOTAL , CTF_FITREF , CTF_NOISERATIO , CTF_INTEN , CTF_POWEVAL , CTF_ALIFILT , CTF_ABS } |
EMAN2Ctf::EMAN2Ctf | ( | ) |
Definition at line 488 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
|
inline |
|
inlineprivate |
Definition at line 305 of file ctf.h.
References background, and dsbg.
Referenced by compute_1d(), and compute_2d_complex().
|
virtual |
Implements EMAN::Ctf.
Definition at line 731 of file ctf.cpp.
References Assert, background, EMAN::Ctf::bfactor, calc_noise(), EMAN::Ctf::cs, EMAN::Ctf::CTF_ABS, EMAN::Ctf::CTF_AMP, EMAN::Ctf::CTF_BACKGROUND, EMAN::Ctf::CTF_INTEN, EMAN::Ctf::CTF_NOISERATIO, EMAN::Ctf::CTF_SIGN, EMAN::Ctf::CTF_SNR, EMAN::Ctf::CTF_SNR_SMOOTH, EMAN::Ctf::CTF_TOTAL, EMAN::Ctf::CTF_WIENER_FILTER, EMAN::Ctf::defocus, div(), dsbg, get_phase(), EMAN::XYData::get_yatx(), InvalidValueException, lambda(), max_int(), min_int(), snr, x, and y.
Referenced by EMAN::CtfSimProcessor::process(), and EMAN::CTFCorrProcessor::process_inplace().
|
virtual |
Implements EMAN::Ctf.
Definition at line 685 of file ctf.cpp.
References dfang, dfdiff, EMAN::Util::hypot_fast(), ImageFormatException, EMAN::Util::square_sum(), stos2(), x, and y.
|
virtual |
Implements EMAN::Ctf.
Definition at line 964 of file ctf.cpp.
References EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, calc_noise(), EMAN::Ctf::cs, EMAN::Ctf::CTF_ABS, EMAN::Ctf::CTF_ALIFILT, EMAN::Ctf::CTF_AMP, EMAN::Ctf::CTF_BACKGROUND, EMAN::Ctf::CTF_FITREF, EMAN::Ctf::CTF_INTEN, EMAN::Ctf::CTF_POWEVAL, EMAN::Ctf::CTF_SIGN, EMAN::Ctf::CTF_SNR, EMAN::Ctf::CTF_SNR_SMOOTH, EMAN::Ctf::CTF_TOTAL, EMAN::Ctf::CTF_WIENER_FILTER, EMAN::Ctf::defocus, df(), dfdiff, dsbg, get_phase(), EMAN::Util::hypot_fast(), lambda(), LOGERR, snr, x, and y.
|
virtual |
Implements EMAN::Ctf.
Definition at line 653 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
Referenced by EMAN::CTFCorrProcessor::process_inplace().
|
inlineprivate |
|
virtual |
Implements EMAN::Ctf.
Definition at line 1239 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 567 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 509 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, Assert, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, InvalidValueException, snr, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 612 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
Referenced by EMAN2Ctf().
|
inline |
|
virtual |
Implements EMAN::Ctf.
Definition at line 671 of file ctf.cpp.
References ampcont.
Referenced by compute_1d(), compute_2d_complex(), and zero().
|
inline |
|
inlineprivate |
Definition at line 293 of file ctf.h.
References lambda(), sqrt(), and EMAN::Ctf::voltage.
Referenced by compute_1d(), compute_2d_complex(), lambda(), stos2(), and zero().
|
inline |
|
virtual |
Implements EMAN::Ctf.
Definition at line 677 of file ctf.cpp.
|
inline |
|
inline |
|
virtual |
Implements EMAN::Ctf.
Definition at line 594 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 544 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 630 of file ctf.cpp.
References ampcont, EMAN::Ctf::apix, background, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, dfang, dfdiff, dsbg, snr, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 1267 of file ctf.cpp.
References EMAN::Ctf::cs, EMAN::Ctf::defocus, get_phase(), lambda(), and sqrt().
float EMAN::EMAN2Ctf::ampcont |
Definition at line 243 of file ctf.h.
Referenced by copy_from(), EMAN2Ctf(), equal(), from_dict(), from_string(), from_vector(), get_phase(), EMAN::CtfSimProcessor::process(), EMAN::CTFCorrProcessor::process_inplace(), set_phase(), to_dict(), to_string(), and to_vector().
vector<float> EMAN::EMAN2Ctf::background |
Definition at line 248 of file ctf.h.
Referenced by calc_noise(), compute_1d(), compute_2d_complex(), copy_from(), EMAN2Ctf(), equal(), from_dict(), from_string(), from_vector(), get_background(), set_background(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN2Ctf::dfang |
Definition at line 241 of file ctf.h.
Referenced by compute_1d_fromimage(), copy_from(), df(), EMAN2Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN2Ctf::dfdiff |
Definition at line 240 of file ctf.h.
Referenced by compute_1d_fromimage(), compute_2d_complex(), copy_from(), df(), EMAN2Ctf(), equal(), from_dict(), from_string(), from_vector(), EMAN::CTFCorrProcessor::process_inplace(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN2Ctf::dsbg |
Definition at line 247 of file ctf.h.
Referenced by calc_noise(), compute_1d(), compute_2d_complex(), copy_from(), EMAN2Ctf(), equal(), from_dict(), from_string(), from_vector(), EMAN::CtfSimProcessor::process(), EMAN::CTFCorrProcessor::process_inplace(), to_dict(), to_string(), and to_vector().
vector<float> EMAN::EMAN2Ctf::snr |
Definition at line 249 of file ctf.h.
Referenced by compute_1d(), compute_2d_complex(), copy_from(), EMAN2Ctf(), equal(), from_dict(), from_string(), from_vector(), get_snr(), set_snr(), to_dict(), to_string(), and to_vector().