EasyManua.ls Logo

Gatan K2 Summit - Page 49

Gatan K2 Summit
49 pages
Print Icon
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
K2 Summit and K2 Base Direct Detection Camera User's Guide
49
getsize(imga,width,height)
number top=margin*height, left=margin*width, bottom=height*(1-margin), right=width*(1-
margin)
setselection(imga,top, left, bottom, right)
image npssum =
modulus(realfft(imga[top,left,bottom,right]+imgb[top,left,bottom,right]))**2
image npsdiff = modulus(realfft(imga[top,left,bottom,right]-
imgb[top,left,bottom,right]))**2
number ratsize = 128
image rednpssum = realimage("",4,ratsize,ratsize)
image rednpsdiff = realimage("",4,ratsize,ratsize)
getsize(npssum,width,height)
rednpssum[trunc(ratsize*icol/width),trunc(ratsize*irow/height)]+=npssum
rednpsdiff[trunc(ratsize*icol/width),trunc(ratsize*irow/height)]+=npsdiff
image fpnrat = rednpssum/rednpsdiff - 1
fpnrat[ratsize/2-1,ratsize/2-1,ratsize/2+1,ratsize/2+1]=0
result("Average fixed pattern ratio = "+100*average(fpnrat)+"%\n")
Showimage(fpnrat)

Table of Contents

Related product manuals