Create a spatial resolution slanted bar target
Slanted bar scenes are used measuring the ISO 12233 standard for spatial resolution (spatial frequency responce). This function and related ones are embedded into the interface and illustrated in other scripts.
sceneCreate('slantedBar',imageSize,edgeSlope, fieldOfView, illPhotons);
See also: ieISO12233, ISOFindSlantedBar, sceneCreate, metricsCamera
Copyright ImagEval Consultants, LLC, 2010.
Contents
ieInit
Slanted bar parameters
sz = 256; barSlope = 2.6; fieldOfView = 2; meanL = 100;
An example slanted bar
% The default slanted bar is created with an illuminant of equal photons % across wavelengths scene = sceneCreate('slantedBar', sz, barSlope, fieldOfView); scene = sceneAdjustLuminance(scene,meanL); % Have a look at the image in the scene Window ieAddObject(scene); sceneWindow; % Here is the scene energy scenePlot(scene,'illuminant energy roi')
No ROI needed unless spatial spectral illluminant ans = struct with fields: wave: [31×1 single] energy: [31×1 single] comment: []


Change the slanted bar to a D65 illuminant, rather than equal energy
scene = sceneAdjustIlluminant(scene,'D65.mat'); % Have a look ieAddObject(scene); sceneWindow; scenePlot(scene,'illuminant energy roi')
No ROI needed unless spatial spectral illluminant ans = struct with fields: wave: [31×1 single] energy: [31×1 single] comment: 'D65.mat'


Create slanted bar with another slope
barSlope = 3.6;
sz = 128;
fieldOfView = 0.5;
scene = sceneCreate('slantedBar', sz, barSlope, fieldOfView);
ieAddObject(scene);
sceneWindow;
