Open xiyuyi opened 5 years ago
Now calculate pixel size:
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
output:
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:
% estimate pixel size f = 'RETICLE00023.tif' im = imread(f); im(540,:)=max(im(:)); im(:,340)=max(im(:)); figure;imshow(im,[])