Documentation – Legacy v5.1 and below

SFRreg INI file reference

View legacy documentation

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

This document was created by running sfrreg in Imatest 5.2.0. ALPHA on 31-May-2019 14:48:43.

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).

Background Meaning
Yellow Yellow background: Important to Imatest IT. Parameter and Description are in boldface. [IT]
Cyan Cyan background: Figure settings. (Figures are used infrequently for IT.) [f]
Gray Gray background: For interactive operation. No effect on IT.
Clear Clear background: Results details (units, scaling, etc.) for CSV and JSON output,
or not yet categorized. May affect IT results.

 

INI file settings for sfrreg
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).
Parameter Section Type Description Default value(s)
acquire imatest int Acquire image from instrument if specode==’dataq’. 0-10+. 0
  0=File; 1=Epiphan; 2=Omnivision; 43=Toshiba; 4=STM; 5=Graphin; 6=OnSemi DevWare; 7=Android; 8=Operator Console; 9=IP; 10=Sony
acutanceType sqf int Acutance CPIQ [1], Standard SQF [2] 1
agc16bit imatest int AGC (auto-lighten) dark 16-bit files 1
angle3D sfrreg dec Azimuth & angle for 3D plots. -12 50
anlz_rough sfrreg int Analyze edge roughness (slight slowdown) 0
anlz_sqf sfrreg int Perform Acutance/SQF analysis 0
aper sfrreg str Aperture: may be used for ISO sensitivity  
areanorm sfrreg int Normalization for MTF area calculation for secondary readouts 1,2: 1 = unnorml; 2 = normalize to maximum. 2 2
bayeraw sfrreg int Bayer RGB format (monochrome-only): 0-5 for [standard monochrome, R, Gr, B, Gb, demosaic] [IT] 0
bkgnd3d sfrreg dec 3D background. 0-1 (black-white). Set in Rescharts slider. [f] 0.9
brawShift dcraw int Bayer RAW bit shift index: 1 for auto; 2-6 for 0, 2, 3, 6, 8 1
CA sfrreg str Plot Lateral Chromatic Aberration (color images-only)[f] Max
calcNoise sfrreg int Only calcNoise(1) is used in Imatest 5.2+ 1 0 0 30 20 0 50 20 0 1 1 0 0
   
chartht sfrreg str Bar-bar chart height (SFRplus), reg mark spacing (SFRplus), or square height (Checkerboard) in cm for Field of View in cm and focal lth measurement  
chcontrast sfrreg int chcontrast(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]
closefigs sfrreg int Close figures after save if 1. May prevent excessive figure buildup, which shows Imatest down.[IT] 0
colorchart sfrreg int Analyze color chart 1
colorspace sfrreg str Color space (determined by ncolor- not used?) sRGB
continue_on_error api int   0
CPIQPreset sqf int Height & 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)
crop_borders sfrreg int Border crop in pixels for improving chart detection. 0 0 0 0 0
csvbase_header sfrreg int 1 or 2 line CSV database header 2
csvs sfrreg int Save CSV files for individual ROIs if 1. 3
cyclesper_value sfrreg int Index 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 http://www.imatest.com/docs/sharpness/#units [IT]
dbase_plots sfrreg int Database plots 0
debug api int   0
deconvFile sfrreg str Deconvolution (chart compensation) file *.csv
deconvFolder imatest str Deconvolution (chart comp.) folder: no filesep at end C:imatestGUIProducts TrunkdependsRTDepends
deconvParam sfrreg dec Deconvolution (chart compensation) settings 0 0 0 0 0 0 0 0 0 0 0 0
defaultref sfrreg int Default reference media for SFRplus or eSFR ISO. 1=nominal; 2=matte; 3=semigloss 1
demoz dcraw int Demosaicing algorithm for dcraw 1 1 0
derivCorr imatest int LSF derivative correction ISO 12233:2014(D.1) Strongly recommended (may remove) 1
disable_figs api int   0
disp3d sfrreg int 3D plot display style: 1-10. Set in Reacharts. [f] 1
displayType sqf int Screen [1], Print [2], Ideal [3] 1
dispnoise sfrreg int Noise display 1
distortionType imatest int TV Distortion type index: 1 fo SMIA, 2 for ISO. 1
edgecrop sfrreg int Index 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
edgeMTF sfrreg str Display edge/MTF plot. [f] Min
edgerough sfrreg str Plot Edge roughness [f] Min
emph2 sfrreg int Emphasize (make bold) secondary readout in Edge/MTF plot [f] 0
esfrnoise sfrreg int Noise plot } 0
exiftool imatest int EXIF read selection. http://www.imatest.com/docs/imatest_instructions/#exif 1 1
  exiftool(1) = 0 (no EXIF), 1 or 2 (use Phil Harvey’s ExifTool), 3 (Matlab built-in).
expandplt imatest str Expand fixed-module figures [f] 1
expert sfrreg int Expert (1) vs. basic mode (0) for parameters window [int] 1
fig_display_mode api int   0
figsave sfrreg int Type of figure to save: 1 for png; 2 for fig [f] 1
filecomb sfrreg int Combine files if >1 (for signal averaging) 0
foclth sfrreg str (focal length from EXIF data. Use for cycles/angle)  
folder sfrreg str Folder for Open image file dialogue box [int] C:imatestGUIProducts Trunksource
fovcalc sfrreg int FoV extrapolation calculation 4
gamma sfrreg str gamma for linearization {IT] 0.5
getfileopt imatest int 1 for standard file read dialog; 2 for uipickfiles, which supports batches. [int] 1
globfold imatest str Use a global folder for reading images, rather than a folder for each module.[int] Min
globsave imatest str Use a global folder for saving results, rather than a folder for each module.[int] Min
gray_ref sfrreg int Grayscale stepchart reference value 1
grayrefolder sfrreg str Last Grayscale reference folder  
heightOrPct sqf int If true [1] image heights are calculated using percentage magnification 0
imageo sfrreg str Plot Image and Geometry [f] Min
ini_file_date imatest str Set to run date in some modules. Informational. UNUSED?  
ini_version imatest int Doesn’t seem to be used for much. Deprecate? UNUSED?  
invert3d sfrreg int 3D invert plot [f] 0
iso sfrreg str (ISO speed settingfrom EXIF data)  
isostd sfrreg str ISO 12233 standard calculation. Min or Max. Min
keepExt imatest int Keep file extension (jpg, png, …) when saving results 0
labcolor sfrreg int L*a*b* color error plot [f] 0
lambdadiff sfrreg dec Wavelength(um) for diffraction-ltd MTF (aper must be set) [f] 0.555
lastfiles sfrreg str Last file list [int]  
Lastgrayrefile sfrreg str Last Grayscale reference file  
Lastlabel sfrreg str Last label in color reference box, for annotation. [f] Last file: (none)
lenschart sfrreg str Lens-to-chart distance cm for focal lth calc.  
lensmtf sfrreg int Lens MTF plot 0
lensOnly sqf int If true [1] viewing display type must be ideal [3] 0
lum_coeffs imatest dec Luminance (Y-channel) coefficients & index [IT] 0.2125 0.7154 0.0721 2
luxinc sfrreg str Incident lux for ISO sensitivity/Exposure Index}  
lwlpd sfrreg int 1 to display LW/PH, 2 for LP/PH 1
magnification sfrreg dec Magnification (for C/Obj mm). Ignore if 0 or for most units. 0
maxDist sqf dec Maximum viewing distance (cm) 150
maxHeight sqf dec Max height (cm) for Fixed distance Acutance sweep 100
maxPct sqf dec Maximum percent magnification of the image 200
minDist sqf dec Minimum viewing distance (cm) 50
minHeight sqf dec Min height (cm) for Fixed distance Acutance sweep 5
minPct sqf dec Minimum percent magnification of the image 25
mirror sfrreg int Mirror image 0
mod_apod sfrreg int “Mod Apod” MTF noise reduction. Recommended. http://www.imatest.com/docs/sharpness/#noisered 1
Moire sfrreg int Moire type. 1-9. 1=R-B; 2=R-B/mean(R,B) Smooth if <0 -1
multidisp sfrreg int Multi-ROI view options [f]: which of boxes 1-4 to display: 1=all; 2=[2-4]; 3=[2,3]; 4=[3,4], … 1
multistyle sfrreg int Multi-ROI results selection: which variables to display. 1
  http://www.imatest.com/docs/rescharts_edge_results-3/#multiroi [f]
multitype sfrreg str Multi-ROI plot type (1D, 2D, etc.)[f] 3
n1090 sfrreg int R1090 rise distance index: 1-5 for 10-90, 10-80, 10-70, 20-80, 20-70 1
ncolor sfrreg int Index of color space: 1=sRGB; 2=Adobe RGB; … 1
nColormap imatest int Color map for pseudocolor plots [f] 1
negative sfrreg int Negative image (light squares) for SFRplus 0
noiseCPIQ visnoise int CPIQ setting chosen in Visual Noise GUI: 1-6: 1 = None; 1
  2 = Small Print (h=10cm h, d-25cm, 600 DPI), 3 = Large Print (h=40cm, d=75cm, 600 DPI), 4 = Computer Monitor at 100% (d=60cm, 100PPI), 5 = 4.5″ Cell Phone (h=5.5cm, d=25cm, 330 PPI), 6 = 30″ 4k UHDTV (h=37.5cm, d=50cm, 146 PPI)
noisedist1 visnoise dec 1st Visual noise viewing distance cm 40
noisedist2 visnoise dec 2nd Visual noise viewing distance cm, empty if none  
noisedist3 visnoise dec 3rd Visual noise viewing distance cm, empty if none  
noiseheight1 visnoise dec 1st Visual noise viewing height cm 25
noiseheight2 visnoise dec 2nd Visual noise viewing height cm1  
noiseheight3 visnoise dec 3rd Visual noise viewing height cm  
noisehist sfrreg str Plot noise histogram [f] Min
noisenonuniform imatest int Index of noise nonuniformity calculation. 1
noiseNorm sfrreg int Noise normalization & x-axis settings. 1 1 0
noisepct1 visnoise dec 1st Visual noise % magnification, empty when height provided  
noisepct2 visnoise dec 2nd Vis noise % magn  
noisepct3 visnoise dec 3rd Vis noise % magn (optional). In Master, midway between 1 & 2  
noiseplot visnoise int Visual noise plot: 1 = sigma(L*u*v* or L*a*b*) and Vis noise 1
  2 = sigma(L*)-only; 3 = sigma(U* or a*)-only; 4 = sigma(v( or b*)-only; 5 = vis noise-only; 6 = L* and vis noise
noiseppcm visnoise dec pixels per cm resolution of the image 39.7
nomsg api int   0
nonuniformCorr sfrreg int Slanted-edge nonuniformity correction 0
normalizeValues sqf int If true [1] normalize MTF values for acutance calculations, otherwise choose false [0] 0
nowait imatest int Suppress waitbar if set [IT] 0
ois_enable sfrreg int Optical Image Stabilization enable 0 0
other sfrreg str System description (manually-entered) displayed in EXIF area [f]  
p3d sfrreg int 3D plot variable: 1-21. Set in Rescharts. [f] 1
passFail api str    
pixelsper sfrreg str Index (1-3) for sensor spacing units: pixels/inch, px/mm, or um/pixel  
pixunits_value sfrreg int Sensor pixel spacing or pitch in pixelsper units. 3
  Example: for 4 um/pixel, use pixelsper = 3; pixunits_value = 4.
plot3d sfrreg str 3D plot in sfrplus [f] Min
plotimage sfrreg int Image plot type [f] 1
plotmax sfrreg int Index 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]
plotType sqf int Sqf or Acutance Standard Plot [1], JND [2] [f] 1
pltrad sfrreg int Radial (CA) plot parameters 1 1 1
pltsharp sfrreg int Display oversharpening if 2 2
pop_edge sfrreg int Edge plot type for Edge/MTF plot: [f] 1
  1-5 for Edge profile (norml, linearized), LSF, Edge (not lin), Edge (lin, UNnorml), …
pprofiles sfrreg str Plot uniformity profiles Min
profile sfrreg int Color uniformity profile type 1
psfPlotOption sfrreg int PSF plot option 1
pxPerCm sqf dec Pixel per cm resolution of the image 100
rad_distort sfrreg int [0 ,1] Radial distortion plot [f] 0
radius sfrreg dec Radius for standardized sharpening (not normally needed) 2
rdnum sfrreg str Secondary readout 1 MTF@ rdnum [IT] 0.3
rdnum2 sfrreg str Secondary readout 2 MTF@ rdnum2 [IT] 0.2
rdnum3 sfrreg str Secondary readout 3 MTF@ rdnum3 0.2
rdpct sfrreg str Secondary readout 1 nn (%) for MTFnn or MTFnnP [IT] 30
rdpct2 sfrreg str Secondary readout 2 nn (%) for MTFnn or MTFnnP [IT] 20
rdpct3 sfrreg str Secondary readout 3 nn (%) for MTFnn or MTFnnP 20
rdtype sfrreg str Secondary readout 1 name: “MTF”, “MTF__P”, “MTF Area”, or “MTF @” [IT] See http://www.imatest.com/docs/imatest-ini-reference/#secondary MTF
rdtype2 sfrreg str Secondary readout 2 name: “MTF”, “MTF__P”, “MTF Area”, or “MTF @” [IT] (none)
rdtype3 sfrreg str Secondary readout 3 name: “MTF”, “MTF__P”, “MTF Area”, or “MTF @” (none)
rdunit sfrreg int Secondary readout 1 frequency unit index (1-3 for C/P, C/mm, C/in) [IT] 1
rdunit2 sfrreg int Secondary readout 2 frequency unit index (1-3 for C/P, C/mm, C/in) [IT] 1
rdunit3 sfrreg int Secondary readout 3 frequency unit index (1-3 for C/P, C/mm, C/in) 1
readexif imatest int Read EXIF data from image file 1
readoutDist sqf dec Readout distance OR fixed viewing distance (cm) 100
readoutHeight sqf dec Readout height (OR) OR fixed height of the image (cm) 75
readoutPct sqf dec Readout percent magnification OR fixed percent magnification 100
ref_value sfrreg int Color reference value 1
regmark_contrast_o-
pt
sfrreg int Level of robustness to high scene dynamic range/low SFRreg target contrast. 0
  >0-2: The higher the value, the slower the runtime. }
regmark_num sfrreg int Extra reg marks & how to use them. } 0
regmark_rotation_o-
pt
sfrreg int Level of robustness to SFRreg target rotation. 0-2. The higher the value, the slower the runtime. } 0
regmark_size sfrreg int Minimum, maximum reg mark diameter in pixels } 0 0
resultsave sfrreg int Save results in subfolder Results of image file folder 1
RGBY_value sfrreg int Index of channel to analyze (4 is Y)[IT] 4
rmcn dcraw int Index of location of Red pixel in Bayer raw: 0-4 for unknown, R1C1, R1C2, R2C1, R2C2 0
roilth sfrreg dec ROI length (slider) 0.85
roiMax sfrreg str Max ROI for thru-focus batch.  
roisel sfrreg int Index of ROI selection for automatic ROI detection. Depends on module. [IT] 4 1
roiwidth sfrreg int ROI width 1
roiZones sfrreg int ROI zones. http://www.imatest.com/docs/rescharts_instructions2/#edgeid 70 80 0 0 0 0
satlvl sfrreg int Saturation level (for dynamic range calculations) 1
save_dir sfrreg str Folder for saving results [int] C:imatestGUIProducts TrunksourceResults
save_file_list sfrreg int List of files to save (specific to module). Some extras1=Edge/MTF plot; (Still finding settings) 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
saveCSV sfrreg int Save CSV file -99
savedel api int   0
saveHTML sfrreg int Save HTML report 0
saveJSON sfrreg int Save JSON file -99
savePDF sfrreg int Save PDF report 0
scale3d sfrreg dec Scale for 3D plots [f] -999
select3d sfrreg int 3D plot selection (several plots) [f] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
sfrrefine api int   0
SFRsuffix sfrreg int Suffix for saving plots & summary CSV file 1
shift_dependent_ge-
ometry_recalc
sfrreg int   1
shutter sfrreg str Shutter speed: may be used for ISO sensitivity  
speedup sfrreg int Speed up calculations (no histograms or Shannon capacity). Recommended. [IT] 1
splitcolor sfrreg int Split color analysis plot [f] 0
SQF sqf str   Min
SQFmult sfrreg str Plot multi-ROI Acutance or SQF. [f] Min
sqfopt sqf dec   3 1 2 3 5 0 0 0 0 0 1 2 2 1 1
stepchart sfrreg int Analyze step chart 1
stepplot2 sfrreg int Stepchart plot– bottom option [f] 1
toneabove sfrreg int Tonal plot above noise plot 1
tones sfrreg str Plot tonal response from grayscale stepchart } Min
vhdisp sfrreg int 1-3 for V, H, V+H (combined), V+H (separate fixed figures), Tangential, or Sagittal for Multi-ROI and 3D plots [f] 3
vhor sfrreg int Vertical/Horizontal edge selection: 1-3 for V, H, V&H 1
viewSettings sqf dec [1] Fixed Viewing Distance, Varying Height 1
  (requires minDist, maxDist, readoutDist, pxPerCm AND readoutHeight OR readoutPct)
visnoisecalc visnoise int Visual noise calculation options: 1=no visual noise; 2 = ISO 15729; 3=CPIQ; 4=both 1
winlarge imatest int Enlarge interactive windows [int] 0
xaxistype sfrreg int Index of Noise x-axis plot units 1
zweights sfrreg dec Zone weights: ctr, mid, corner. Can be 0-1. [.5 .5 .5] might be better for machine vision. 1 0.75 0.5
Parameter Section Type Description Default value(s)