Count pixels for a particular sensor (quarterinch, halfinch)
Count pixel density for different sensor sizes and different pixel sizes.
See also: s_sensorPixelCounting
Copyright ImagEval Consultants, LLC, 2005.
Contents
ieInit
Here are all the known sensor formats
% Either the pixel count or the size in meters is printed out
sensorFormats
ans = struct with fields: qqcif: [72 88] qcif: [144 176] qqvga: [120 160] qvga: [240 320] cif: [288 352] vga: [480 640] svga: [600 800] xvga: [768 1024] uvga: [1024 1280] uxvga: [1200 1600] halfinch: [0.0048 0.0064] quarterinch: [0.0024 0.0032] sixteenthinch: [0.0012 0.0016]
Calculate the pixels for a half inch
sSize = sensorFormats('half inch'); % Returns sensor size in meters pSize = (0.8:0.2:3)*1e-6; % Pixel size in meters r = zeros(size(pSize)); c = zeros(size(pSize)); m = zeros(size(pSize)); for ii=1:length(pSize) r(ii) = sSize(1) / pSize(ii); c(ii) = sSize(2) / pSize(ii); m(ii) = ieN2MegaPixel(r(ii)*c(ii)); end
Plot for half inch
vcNewGraphWin; plot(pSize*1e6,m,'-o') grid on xlabel('Pixel size (um)') ylabel('Megapixel')

Quarter inch
sSize = sensorFormats('quarter inch'); % Returns sensor size in meters pSize = (0.8:0.2:3)*1e-6; % Pixel size in meters r = zeros(size(pSize)); c = zeros(size(pSize)); m = zeros(size(pSize)); for ii=1:length(pSize) r(ii) = sSize(1) / pSize(ii); c(ii) = sSize(2) / pSize(ii); m(ii) = ieN2MegaPixel(r(ii)*c(ii)); end
Add the quarter inch curve
hold on plot(pSize*1e6,m,'-o') legend({'Half inch','Quarter inch'})
