lmrcImageCTFCompensation(API)

From EosPedia
Jump to: navigation, search

DataManip/mrcImage/src/lmrcImageCTFCompensation is API to multiply CTF Correction to mrcImage. It is used by mrcImageCTFCompensation, mrcImageMultiCTFCompensation, and so on.

constant

struct

API

CTF Correction(One image)

extern void lmrcImageCTFCompensation(mrcImage* dstfft, ctfInfo* ctf, long mode);

Depending on ctf->flagAstigmatism, run different process. In addition, processes are changed by mode of argument. (refer ctfInfo(API))

Flag Function Name Description
true ctfWeightForCorrection2D CTF Correction(2D)
false ctfWeightForCorrection CTF Correction


If ctf->flagWin is true, perform other correction for each range R at the following rule.(sin Windowing)

Range Description
ctf->CutLow or less Directly
more than ctf->CutLow, and less than ctf->CutHigh Weight = Weight*(cos((R-ctf->CutLow)/(ctf->CutHigh-ctf->CutLow)*M_PI)+1)*0.5;
more than ctf->CutHigh 0


CTF Correction(Multiple images)

extern void lmrcImageMultiCTFCompensation(mrcImage* dst, mrcImage* src, ctfInfo* ctf, long nfile, lmrcImageMultiCTFCompensationInfo info, long mode);

Depending on mode(&0xf), run either function at the following.

Value Function Name Description
+0 __lmrcImageMultiCTFCompensationMode0
+1 __lmrcImageMultiCTFCompensationMode1 Smoothing of Solvent


extern void __lmrcImageMultiCTFCompensationMode0(mrcImage* dst, mrcImage* src, ctfInfo* ctf, long nfile, lmrcImageMultiCTFCompensationInfo info, long mode);
extern void __lmrcImageMultiCTFCompensationMode1(mrcImage* dst, mrcImage* src, ctfInfo* ctf, long nfile, lmrcImageMultiCTFCompensationInfo info, long mode);

Output API Information

extern void lmrcImageMultiCTFCompensationUsage(FILE* fpt);