xiyuyi / PyPRIS

This is a python package to perform progressive refinement method for sparse recovery (PRIS)
Other
0 stars 0 forks source link

Measure pixel size #79

Open xiyuyi opened 5 years ago

xiyuyi commented 5 years ago

measure pixel size from a reticle picture with known distance

document how I measured the pixel size.

first take a picture of a reticle, and mark some white lines on it, and get the pixel coordinates in the marked region: image

% estimate pixel size f = 'RETICLE00023.tif' im = imread(f); im(540,:)=max(im(:)); im(:,340)=max(im(:)); figure;imshow(im,[])

image

xiyuyi commented 5 years ago

Now calculate pixel size: image

matlab scripts: dx = 1591-443; % dx between two adjacent bars dy = (1801-192)/10; % divde by 10 because it is 10 times % the distance between adjacent bars. dr = sqrt(dx^2+dy^2); distance = dx*dy/dr; % the distance between two bars (unit pixel size) dr_real = 10000; % The real distance between 2 adjacent % bars is 1000,0 nanometers (10 microns) pr = dr_real/distance; % this is unit pixel lenght in unit of nanometers. disp(['pixel size is ',num2str(pr),' nanometers'])

screen shot image

output:

pixel size is 62.7579 nanometers

take 62.75 for simplicity

xiyuyi commented 5 years ago

No, take 62.7579.