SFR INI file reference

* indicates that this field will be described in more detail at the bottom of this document (Much of the text at the bottom will be common to several ini file reference pages).

For more information on how to use INI files in Imatest IT, we recommend the Imatest INI File Reference

For Imatest IT, most of these entries don't need to be entered. Many don't affect Imatest IT results: they control interactive figure displays or figure output formats (figures are often not used in Imatest IT).

BackgroundMeaning
YellowYellow background: Important to Imatest IT. Parameter and Description are in boldface. [IT]
CyanCyan background: Figure settings. (Figures are used infrequently for IT.) [f]
GrayGray background: For interactive operation. No effect on IT.
ClearClear background: Results details (units, scaling, etc.) for CSV and JSON output,
or not yet categorized. May affect IT results.
INI file settings for SFR
Notes: Parameters of special interest to IT users are indicated by [IT] and displayed in Boldface. Some entries have extra values (unused; there to make it easy to add more settings).
ParameterSectionTypeDescriptionDefault value(s)
acutanceTypesqfintAcutance CPIQ [1], Standard SQF [2]1
agc16bitimatestintAGC (auto-lighten) dark 16-bit files1
anlz_roughsfrintAnalyze edge roughness (slight slowdown)0
anlz_sqfsfrintPerform Acutance/SQF analysis0
apersfrstrAperture: may be used for ISO sensitivity 
areanormsfrintNormalization for MTF area calculation for secondary readouts 1,2: 1 = unnorml; 2 = normalize to maximum.2 2
bayerawsfrintBayer RGB format (monochrome-only): 0-5 for [standard monochrome, R, Gr, B, Gb, demosaic] [IT]0
brawShiftdcrawintBayer RAW bit shift1
CAsfrstrPlot Lateral Chromatic Aberration (color images-only)[f]Max
camerasfrstr(camera type from EXIF data) 
chcontrastsfrintchcontrast(1) is index of chart contrast for calculating gamma when chcontrast(3)=1:7 10 0
 1-12 for contrast ratio = [Off 80 50 40 25 20 10 5 4 2 1.414 1.2 1.1]* [IT]
closefigssfrintClose figures after save if 1. May prevent excessive figure buildup, which shows Imatest down.[IT]0
continue_on_errorapiintContinue batch-processing if exception [IT]0
CPIQPresetsqfintHeight & distance presets for Acutance calculation: [1] None,1
  [2] Small Print (10 cm height, 25cm dist, 600 DPI),
[3] Large Print (40cm height, 75cm dist, 600DPI),
[4] Computer Monitor at 100% (60cm distance, 100PPI),
[5] 4.5" Cell Phone (5.5cm height, 25cm dist, 330PPI),
[6] 30" 4k UHDTV (37.5cm height, 50cm dist, 146 PPI)
csvbase_headersfrint1 or 2 line CSV database header2
cyclespersfrstrPlot Edge & MTFMax
cyclesper_valuesfrintIndex of display unit: 1-13 for 1
 C/P, C/mm, C/in, LW/PH, LP/PH C/mrad, C/deg, C/Objmm, C/Objin, LW/CH, LP/CH, LW/N_PX, LP/N_PX. See /24.1/sharpness#units [IT]
debugapiint 0
deconvFilesfrstrDeconvolution (chart compensation) file*.csv
deconvFolderimateststrDeconvolution (chart comp.) folder: no filesep at endC:\imatest\GUIProducts\ Trunk\depends\RTDepends
deconvParamsfrdecDeconvolution (chart compensation) settings0 0 0 0 0 0 0 0 0 0 0 0
demozdcrawintDemosaicing algorithm1 1 0
derivCorrimatestintLSF derivative correction ISO 12233:2014(D.1) Strongly recommended (may remove)1
disable_figsapiintNo figures in IT [IT]0
displayTypesqfintScreen [1], Print [2], Ideal [3]1
edgecropsfrintIndex of edge display for Edge/MTF plot: 1=default; 2=entire edge; 3={-4,6} pizels; 4={-10,15}; 5={-15,20}; 6-Half edge; 7=Quarter edge [f]1
edgeroughsfrstrPlot Edge roughness [f]Min
emph2sfrintEmphasize (make bold) secondary readout in Edge/MTF plot [f]0
exiftoolimatestintEXIF read selection. /24.1/imatest_instructions#exif1 1
 exiftool(1) = 0 (no EXIF), 1 or 2 (use Phil Harvey's ExifTool), 3 (Matlab built-in).
expandpltimateststrExpand fixed-module figures [f]1
expertsfrintExpert (1) vs. basic mode (0) for parameters window [int]1
fig_display_modeapiintFigure generation mode for IT0
figsavesfrintType of figure to save: 1 for png; 2 for fig [f]1
filecombsfrintCombine files if >1 (for signal averaging)0
foclthsfrstr(focal length from EXIF data. Use for cycles/angle) 
foldersfrstrFolder for Open image file dialogue box [int]C:\imatest\GUIProducts\ Trunk\source\
gammasfrstrgamma for linearization {IT]0.5
getfileoptimatestint1 for standard file read dialog; 2 for uipickfiles, which supports batches. [int]1
globfoldimateststrUse a global folder for reading images, rather than a folder for each module.[int]Min
globsaveimateststrUse a global folder for saving results, rather than a folder for each module.[int]Min
heightOrPctsqfintIf true [1] image heights are calculated using percentage magnification0
ini_file_dateimateststrSet to run date in some modules. Informational. UNUSED? 
instarunimatestintNew cropping indicator [int]0
isosfrstr(ISO speed settingfrom EXIF data) 
isostdsfrstrISO 12233 standard calculation. Min or Max.Min
keepExtimatestintKeep file extension (jpg, png, ...) when saving results0
lambdadiffsfrdecWavelength(um) for diffraction-ltd MTF (aper must be set) [f]0.555
lastfilessfrstrLast file list [int] 
lenssfrstr(lens type from EXIF data) 
lenschartsfrstrLens-to-chart distance cm for focal lth calc. 
lensOnlysqfintIf true [1] viewing display type must be ideal [3]0
lum_coeffsimatestdecLuminance (Y-channel) coefficients & index [IT]0.2125 0.7154 0.0721 2
lwlpdsfrint1 to display LW/PH, 2 for LP/PH1
magnificationsfrdecMagnification (for C/Obj mm). Ignore if 0 or for most units.0
maxDistsqfdecMaximum viewing distance (cm)150
maxHeightsqfdecMax height (cm) for Fixed distance Acutance sweep100
maxPctsqfdecMaximum percent magnification of the image200
minDistsqfdecMinimum viewing distance (cm)50
minHeightsqfdecMin height (cm) for Fixed distance Acutance sweep5
minPctsqfdecMinimum percent magnification of the image25
mod_apodsfrint"Mod Apod" MTF noise reduction. Recommended. /24.1/sharpness#noisered1
multidispsfrintMulti-ROI view options [f]: which of boxes 1-4 to display: 1=all; 2=[2-4]; 3=[2,3]; 4=[3,4], ...1
multistylesfrintMulti-ROI results selection: which variables to display.1
 /24.1/rescharts_edge_results-3#multiroi [f]
multitypesfrstrMulti-ROI plot type (1D, 2D, etc.)[f]3
n1090sfrintR1090 rise distance index: 1-5 for 10-90, 10-80, 10-70, 20-80, 20-701
nht_savesfrintHeight in pixels of last image0
noisehistsfrstrPlot noise histogram [f]Min
nonuniformCorrsfrintSlanted-edge nonuniformity correction0
noplotapiintSuppress all plots in IT [IT]0
normalizeValuessqfintIf true [1] normalize MTF values for acutance calculations, otherwise choose false [0]0
nowaitimatestintSuppress waitbar if set [IT]0
nwid_savesfrintWidth in pixels of last image0
ois_enablesfrintOptical Image Stabilization enable0 0
othersfrstrSystem description (manually-entered) displayed in EXIF area [f] 
passFailapistrPass/fail file name 
phsfrstrPicture height in pixels [IT] 
ph16505sfrintPicture Height for ISO 165050
pixelspersfrstrSensor pixel spacing or pitch in pixelsper units. 
pixunits_valuesfrintIndex (1-3) for sensor spacing units: pixels/inch, px/mm, or um/pixel3
 Example: for 4 um/pixel, use pixelsper = 4; pixunits_value = 3.
plotmaxsfrintIndex of maximum plot frequency for Edge/MTF plot:1
 1-6 for [2, 1, 0.5, 0.2, 0.1, 0.05]*Nyquist frequency[f]
plotTypesqfintSqf or Acutance Standard Plot [1], JND [2] [f]1
pltafsfrstrAAA Auto Focus AF PlotMin
pltsharpsfrintDisplay oversharpening if 22
pop_edgesfrintEdge plot type for Edge/MTF plot: [f]1
 1-5 for Edge profile (norml, linearized), LSF, Edge (not lin), Edge (lin, UNnorml), ...
presetsfrint??? [f]1
pwsfrstrPicture width in pixels [IT] 
pxPerCmsqfdecPixel per cm resolution of the image100
radiussfrdecRadius for standardized sharpening (not normally needed)2
rdnumsfrstrSecondary readout 1 MTF@ rdnum [IT]0.3
rdnum2sfrstrSecondary readout 2 MTF@ rdnum2 [IT]0.2
rdnum3sfrstrSecondary readout 3 MTF@ rdnum30.2
rdpctsfrstrSecondary readout 1 nn (%) for MTFnn or MTFnnP [IT]30
rdpct2sfrstrSecondary readout 2 nn (%) for MTFnn or MTFnnP [IT]20
rdpct3sfrstrSecondary readout 3 nn (%) for MTFnn or MTFnnP20
rdtypesfrstrSecondary readout 1 name: "MTF", "MTF__P", "MTF Area", or "MTF @" [IT] See /24.1/imatest-ini-reference#secondaryMTF
rdtype2sfrstrSecondary readout 2 name: "MTF", "MTF__P", "MTF Area", or "MTF @" [IT](none)
rdtype3sfrstrSecondary readout 3 name: "MTF", "MTF__P", "MTF Area", or "MTF @"(none)
rdunitsfrintSecondary readout 1 frequency unit index (1-3 for C/P, C/mm, C/in) [IT]1
rdunit2sfrintSecondary readout 2 frequency unit index (1-3 for C/P, C/mm, C/in) [IT]1
rdunit3sfrintSecondary readout 3 frequency unit index (1-3 for C/P, C/mm, C/in)1
readexifimatestintRead EXIF data from image file1
readoutDistsqfdecReadout distance OR fixed viewing distance (cm)100
readoutHeightsqfdecReadout height (OR) OR fixed height of the image (cm)75
readoutPctsqfdecReadout percent magnification OR fixed percent magnification100
resultsavesfrintSave results in subfolder Results of image file folder1
RGBY_valuesfrintIndex of channel to analyze (4 is Y)[IT]4
rmcndcrawintIndex of location of Red pixel in Bayer raw: 0-4 for unknown, R1C1, R1C2, R2C1, R2C20
roi_multsfrintROI: (nroi,4) array: [x(ul) y(ul) x(lr) y(lr)].1 1 1 1
 For non-rescharts SFR. Example for 2 ROIs: roi_mult = [ 217 111 232 133; 234 110 250 131;] [IT]
roifiltersfrintROI detection filtering0
save_answersfrstrSave results for this module (Yes or No) [int]Yes
save_dirsfrstrFolder for saving results [int]C:\imatest\GUIProducts\ Trunk\source\Results\
save_file_listsfrintList of files to save (specific to module) Some extras. Elements:1=Edge/MTF plot; 3=CA plot; 6=CSV; 8=Acutance; 9=Noise histogram; 10-Edge roughness plot; 11=JSON; 12=HTML; 13=PDF1 0 1 1 1 0 0 0 0 0 0 0 0 0 0
save_roi_listsfrintList of ROIs to save (multiple ROIs) [int]1 1 1 1
saveCSVsfrintSave CSV file-99
savedelapiintAlways close figures after saving them [IT]0
saveHTMLsfrintSave HTML report0
saveJSONsfrintSave JSON file-99
savePDFsfrintSave PDF report0
sfrrefinesfrintRefine ROI next SFR run0
SFRsuffixsfrintSuffix for saving plots & summary CSV file1
shannonsfrstrPlot Shannon capacity if 'Max' [f]Min
shuttersfrstrShutter speed: may be used for ISO sensitivity 
speedupsfrintSpeed up calculations (no histograms or Shannon capacity). Recommended. [IT]1
SQFsqfstrCalculate Acutance or SQFMin
SQFmultsfrstrPlot multi-ROI Acutance or SQF. [f]Min
viewSettingssqfdec[1] Fixed Viewing Distance, Varying Height1
 (requires minDist, maxDist, readoutDist, pxPerCm AND readoutHeight OR readoutPct)
winlargeimatestintEnlarge interactive windows [int]0
zweightssfrdecZone weights: ctr, mid, corner. Can be 0-1. [.5 .5 .5] might be better for machine vision.1 0.75 0.5
ParameterSectionTypeDescriptionDefault value(s)

Details

Secondary readouts are displayed in several MTF plots and in CSV and JSON output of sharpness modules. They are also used for pass/fail criteria.

The Secondary readout window (shown on the right) controls the secondary readout display in MTF plots. The primary readout is MTF50 (the half-contrast spatial frequency). Three secondary readouts are available with several options. The first defaults to MTF30 (the spatial frequency where MTF is 30%). The third is used only for SFRplus Lens-style MTF plots.