Difference between revisions of "lmrcImageCTFCompensation(API)"

From EosPedia
Jump to: navigation, search
(CTF Correction(One image))
 
Line 28: Line 28:
 
<br>
 
<br>
  
If ctf->flagWin is true, perform other correction for each range R at the following rule.
+
If ctf->flagWin is true, perform other correction for each range R at the following rule.(sin Windowing)
 
<table border="1">
 
<table border="1">
 
<tr>  
 
<tr>  
Line 48: Line 48:
 
</table>  
 
</table>  
 
<br>
 
<br>
 
  
 
===  CTF Correction(Multiple images) ===
 
===  CTF Correction(Multiple images) ===

Latest revision as of 06:29, 2 September 2014

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);