EMAN2
Public Types | Public Member Functions | Public Attributes | List of all members
EMAN::Ctf Class Referenceabstract

Ctf is the base class for all CTF model. More...

#include <ctf.h>

Inheritance diagram for EMAN::Ctf:
Inheritance graph
[legend]

Public Types

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
}
 

Public Member Functions

virtual ~Ctf ()
 
virtual int from_string (const string &ctf)=0
 
virtual string to_string () const =0
 
virtual void from_dict (const Dict &dict)=0
 
virtual Dict to_dict () const =0
 
virtual void from_vector (const vector< float > &vctf)=0
 
virtual vector< float > to_vector () const =0
 
virtual float zero (int n) const =0
 
virtual vector< float > compute_1d (int size, float ds, CtfType t, XYData *struct_factor=0)=0
 
virtual vector< float > compute_1d_fromimage (int size, float ds, EMData *image)=0
 
virtual void compute_2d_real (EMData *img, CtfType t, XYData *struct_factor=0)=0
 
virtual void compute_2d_complex (EMData *img, CtfType t, XYData *struct_factor=0)=0
 
virtual void copy_from (const Ctf *new_ctf)=0
 
virtual bool equal (const Ctf *ctf1) const =0
 
virtual float get_phase () const =0
 
virtual void set_phase (float phase)=0
 

Public Attributes

float defocus
 
float bfactor
 
float voltage
 
float cs
 
float apix
 

Detailed Description

Ctf is the base class for all CTF model.

Contrast transfer function (CTF) is the function that describes the transfer of information from the object to the contrast observed in the image for electron microscopy.

Definition at line 59 of file ctf.h.

Member Enumeration Documentation

◆ CtfType

Enumerator
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 

Definition at line 63 of file ctf.h.

64 {
65 CTF_AMP, // ctf ampltidue only
66 CTF_SIGN, // ctf sign (+-1)
67 CTF_BACKGROUND, // Background, no ctf oscillation
68 CTF_SNR, // Signal to noise ratio
69 CTF_SNR_SMOOTH, // Signal to noise ratio, smoothed, algorithm may vary, but this should be more suitable for weighting
70 CTF_WIENER_FILTER, // Weiner Filter = 1/(1+1/snr)
71 CTF_TOTAL, // AMP*AMP+NOISE
72 CTF_FITREF, // CTF amplitude squared without B-factor and low resolution zeroed
73 CTF_NOISERATIO, // 1-Noise/Total, when a particle is filtered with this it will still have noise, but the structure factor will look as if it's noise-free
74 CTF_INTEN, // ctf intensity only (no background or envelope)
75 CTF_POWEVAL, // ctf intensity, no B-factor and filtered below 20 A
76 CTF_ALIFILT, // ctf intensity -> mean subtracted to cause phase-flipping near zeroes, used to focus alignment on Thon rings
77 CTF_ABS // ctf ampltidue only (abs value)
78 };
@ CTF_TOTAL
Definition: ctf.h:71
@ CTF_FITREF
Definition: ctf.h:72
@ CTF_NOISERATIO
Definition: ctf.h:73
@ CTF_SNR_SMOOTH
Definition: ctf.h:69
@ CTF_WIENER_FILTER
Definition: ctf.h:70
@ CTF_AMP
Definition: ctf.h:65
@ CTF_ALIFILT
Definition: ctf.h:76
@ CTF_INTEN
Definition: ctf.h:74
@ CTF_SIGN
Definition: ctf.h:66
@ CTF_BACKGROUND
Definition: ctf.h:67
@ CTF_POWEVAL
Definition: ctf.h:75
@ CTF_SNR
Definition: ctf.h:68
@ CTF_ABS
Definition: ctf.h:77

Constructor & Destructor Documentation

◆ ~Ctf()

virtual EMAN::Ctf::~Ctf ( )
inlinevirtual

Definition at line 80 of file ctf.h.

81 {
82 }

Member Function Documentation

◆ compute_1d()

virtual vector< float > EMAN::Ctf::compute_1d ( int  size,
float  ds,
CtfType  t,
XYData struct_factor = 0 
)
pure virtual

◆ compute_1d_fromimage()

virtual vector< float > EMAN::Ctf::compute_1d_fromimage ( int  size,
float  ds,
EMData image 
)
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ compute_2d_complex()

virtual void EMAN::Ctf::compute_2d_complex ( EMData img,
CtfType  t,
XYData struct_factor = 0 
)
pure virtual

◆ compute_2d_real()

virtual void EMAN::Ctf::compute_2d_real ( EMData img,
CtfType  t,
XYData struct_factor = 0 
)
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ copy_from()

virtual void EMAN::Ctf::copy_from ( const Ctf new_ctf)
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ equal()

virtual bool EMAN::Ctf::equal ( const Ctf ctf1) const
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

Referenced by EMAN::EMUtil::is_same_ctf().

◆ from_dict()

virtual void EMAN::Ctf::from_dict ( const Dict dict)
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ from_string()

virtual int EMAN::Ctf::from_string ( const string &  ctf)
pure virtual

◆ from_vector()

virtual void EMAN::Ctf::from_vector ( const vector< float > &  vctf)
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ get_phase()

virtual float EMAN::Ctf::get_phase ( ) const
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ set_phase()

virtual void EMAN::Ctf::set_phase ( float  phase)
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ to_dict()

virtual Dict EMAN::Ctf::to_dict ( ) const
pure virtual

◆ to_string()

virtual string EMAN::Ctf::to_string ( ) const
pure virtual

◆ to_vector()

virtual vector< float > EMAN::Ctf::to_vector ( ) const
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

◆ zero()

virtual float EMAN::Ctf::zero ( int  n) const
pure virtual

Implemented in EMAN::EMAN1Ctf, and EMAN::EMAN2Ctf.

Member Data Documentation

◆ apix

float EMAN::Ctf::apix

◆ bfactor

float EMAN::Ctf::bfactor

◆ cs

float EMAN::Ctf::cs

◆ defocus

float EMAN::Ctf::defocus

◆ voltage

float EMAN::Ctf::voltage

The documentation for this class was generated from the following file: