EMAN2
|
EMAN1Ctf is the CTF model used in EMAN1. More...
#include <ctf.h>
Public Member Functions | |
EMAN1Ctf () | |
EMAN1Ctf (const vector< float > &vf) | |
~EMAN1Ctf () | |
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 | get_defocus () const |
float | get_bfactor () const |
float | get_phase () const |
void | set_phase (float phase) |
Public Member Functions inherited from EMAN::Ctf | |
virtual | ~Ctf () |
Public Attributes | |
float | amplitude |
float | ampcont |
float | noise1 |
float | noise2 |
float | noise3 |
float | noise4 |
Public Attributes inherited from EMAN::Ctf | |
float | defocus |
float | bfactor |
float | voltage |
float | cs |
float | apix |
Private Member Functions | |
float | calc_amp1 () |
float | calc_lambda () |
float | calc_g1 () |
float | calc_g2 () |
float | calc_gamma (float g1, float g2, float s) |
float | calc_ctf1 (float g, float gamma, float s) |
float | calc_amplitude (float gamma) |
float | calc_noise (float s) |
float | calc_snr (float g1, float gamma, float s) |
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 } |
EMAN1Ctf::EMAN1Ctf | ( | ) |
Definition at line 39 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
inline |
|
inlineprivate |
Definition at line 172 of file ctf.h.
References ampcont, and sqrt().
Referenced by compute_1d(), and compute_2d_complex().
|
inlineprivate |
|
inlineprivate |
Definition at line 204 of file ctf.h.
References ampcont, amplitude, and EMAN::Ctf::bfactor.
Referenced by calc_snr(), compute_1d(), and compute_2d_complex().
|
inlineprivate |
Definition at line 183 of file ctf.h.
References calc_lambda(), and EMAN::Ctf::cs.
Referenced by compute_1d(), and compute_2d_complex().
|
inlineprivate |
Definition at line 190 of file ctf.h.
References calc_lambda(), and EMAN::Ctf::defocus.
Referenced by compute_1d(), and compute_2d_complex().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 217 of file ctf.h.
References noise1, noise2, noise3, noise4, and sqrt().
Referenced by calc_snr(), compute_1d(), and compute_2d_complex().
|
inlineprivate |
Definition at line 225 of file ctf.h.
References calc_ctf1(), and calc_noise().
Referenced by compute_1d().
|
virtual |
Implements EMAN::Ctf.
Definition at line 176 of file ctf.cpp.
References Assert, calc_amp1(), calc_ctf1(), calc_g1(), calc_g2(), calc_gamma(), calc_noise(), calc_snr(), EMAN::Ctf::CTF_ABS, EMAN::Ctf::CTF_AMP, EMAN::Ctf::CTF_BACKGROUND, EMAN::Ctf::CTF_SIGN, EMAN::Ctf::CTF_SNR, EMAN::Ctf::CTF_SNR_SMOOTH, EMAN::Ctf::CTF_TOTAL, EMAN::Ctf::CTF_WIENER_FILTER, EMAN::XYData::get_yatx(), LOGERR, and sqrt().
|
virtual |
|
virtual |
Implements EMAN::Ctf.
Definition at line 306 of file ctf.cpp.
References EMAN::Ctf::apix, calc_amp1(), calc_amplitude(), calc_ctf1(), calc_g1(), calc_g2(), calc_gamma(), calc_noise(), EMAN::Ctf::CTF_ABS, EMAN::Ctf::CTF_AMP, EMAN::Ctf::CTF_BACKGROUND, EMAN::Ctf::CTF_SIGN, EMAN::Ctf::CTF_SNR, EMAN::Ctf::CTF_SNR_SMOOTH, EMAN::Ctf::CTF_TOTAL, EMAN::Ctf::CTF_WIENER_FILTER, EMAN::XYData::get_yatx(), InvalidParameterException, LOGERR, x, and y.
|
virtual |
Implements EMAN::Ctf.
Definition at line 157 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 464 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 79 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 60 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, Assert, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, InvalidValueException, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 112 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
Referenced by EMAN1Ctf(), and get_ctf().
|
inline |
Definition at line 162 of file ctf.h.
References EMAN::Ctf::bfactor.
|
inline |
Definition at line 158 of file ctf.h.
References EMAN::Ctf::defocus.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements EMAN::Ctf.
Definition at line 94 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 147 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
|
virtual |
Implements EMAN::Ctf.
Definition at line 127 of file ctf.cpp.
References ampcont, amplitude, EMAN::Ctf::apix, EMAN::Ctf::bfactor, EMAN::Ctf::cs, EMAN::Ctf::defocus, noise1, noise2, noise3, noise4, and EMAN::Ctf::voltage.
Referenced by EMAN::MrcIO::read_mrc_header().
|
virtual |
float EMAN::EMAN1Ctf::ampcont |
Definition at line 125 of file ctf.h.
Referenced by calc_amp1(), calc_amplitude(), calc_ctf1(), copy_from(), EMAN1Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN1Ctf::amplitude |
Definition at line 124 of file ctf.h.
Referenced by calc_amplitude(), calc_ctf1(), copy_from(), EMAN1Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN1Ctf::noise1 |
Definition at line 126 of file ctf.h.
Referenced by calc_noise(), copy_from(), EMAN1Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN1Ctf::noise2 |
Definition at line 127 of file ctf.h.
Referenced by calc_noise(), copy_from(), EMAN1Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN1Ctf::noise3 |
Definition at line 128 of file ctf.h.
Referenced by calc_noise(), copy_from(), EMAN1Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().
float EMAN::EMAN1Ctf::noise4 |
Definition at line 129 of file ctf.h.
Referenced by calc_noise(), copy_from(), EMAN1Ctf(), equal(), from_dict(), from_string(), from_vector(), to_dict(), to_string(), and to_vector().