EMAN2
Public Types | Public Member Functions | Public Attributes
EMAN::Ctf Class Reference

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

#include <ctf.h>

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

List of all members.

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
}
enum  { CTFOS = 5 }

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

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 63 of file ctf.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
CTFOS 

Definition at line 115 of file ctf.h.

                { CTFOS = 5 };
Enumerator:
CTF_AMP 
CTF_SIGN 
CTF_BACKGROUND 
CTF_SNR 
CTF_SNR_SMOOTH 
CTF_WIENER_FILTER 
CTF_TOTAL 
CTF_FITREF 
CTF_NOISERATIO 
CTF_INTEN 

Definition at line 67 of file ctf.h.

                {
                        CTF_AMP,                        // ctf ampltidue only
                        CTF_SIGN,                       // ctf sign (+-1)
                        CTF_BACKGROUND,         // Background, no ctf oscillation
                        CTF_SNR,                        // Signal to noise ratio
                        CTF_SNR_SMOOTH,         // Signal to noise ratio, smoothed, algorithm may vary, but this should be more suitable for weighting
                        CTF_WIENER_FILTER,      // Weiner Filter = 1/(1+1/snr)
                        CTF_TOTAL,                      // AMP*AMP+NOISE
                        CTF_FITREF,                     // CTF amplitude squared without B-factor and low resolution zeroed
                        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
                        CTF_INTEN                       // ctf intensity only (no background or envelope)
                };

Constructor & Destructor Documentation

virtual EMAN::Ctf::~Ctf ( ) [inline, virtual]

Definition at line 81 of file ctf.h.

                {
                }

Member Function Documentation

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

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

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

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

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

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

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().

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

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

virtual int EMAN::Ctf::from_string ( const string &  ctf) [pure virtual]
virtual void EMAN::Ctf::from_vector ( const vector< float > &  vctf) [pure virtual]

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

virtual Dict EMAN::Ctf::to_dict ( ) const [pure virtual]
virtual string EMAN::Ctf::to_string ( ) const [pure virtual]
virtual vector<float> EMAN::Ctf::to_vector ( ) const [pure virtual]

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

Referenced by EMAN::EMData::set_ctf().

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

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


Member Data Documentation


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