; vi: set softtabstop=4 shiftwidth=4 tabstop=8 expandtab:
;
; Sample run configuration file.
;
; Paths are relative to the current working directory when superres was
; started.

[superres]
    ; a list of files to process.
    src = ms0:/SuperRes/sharpmed0.jpg
    src = ms0:/SuperRes/sharpmed1.jpg
    src = ms0:/SuperRes/sharpmed2.jpg
    src = ms0:/SuperRes/sharpmed3.jpg

    ; if you want to use a different set of files for image registration
    ; (e.g. pass in a demosaiced set here, and a raw set for superres),
    ; you can do it with regsrc.
    ; regsrc = ...
    ; regsrc = ...

    ; or you can specify the registrations directly in the format expected
    ; by AffineModel ("a1 a2 a3 a4 a5 a6")
    ; reg = 0.0 0.0 0.0 0.0 0.0 0.0
    ; reg = 0.0 0.0 0.0 0.0 0.0 0.0
    ; reg = 0.0 0.0 0.0 0.0 0.0 0.0
    ; reg = 0.0 0.0 0.0 0.0 0.0 0.0
        
    ; To restrict image registration to translational motion only:
    ; transonly = 1

    ; All source images will be cropped to this region prior to image
    ; registration. These parameters are optional.
    ;cropx = 916
    ;cropy = 714
    ;cropw = 344
    ;croph = 200

    ; The output will be saved every "iterspersave" iterations.
    iterspersave = 100
    totaliters = 600

    ; Images will be saved to "destbase-nnn.png" where nnn is the iteration
    ; number (000 for the initial estimate).
    ; If you leave this unset, the path to the .ini file without extension
    ; will be used.
    destbase = /SuperRes/sharprun

    ; The enhancement factor. The image will be enlarged by this
    ; integer amount in the width and height dimensions.
    factor = 2

    ; Overrides the default step size for the steepest descent
    ; minimization process (beta, in the paper).
    ;
    ; Suggested range: 0.002.
    stepsize = 0.002

    ; Overrides the default camera point spread function.
    ; The PSF will be a "blurwidth" x "blurwidth" Gaussian blur kernel
    ; with standard deviation "blurdev".
    ;
    ; This is the most important setting.
    ; Suggested range: blurwidth/blurdev = 3/1, 5/2, 7/5, 9/7, 10/7.5, 11/9
    blurwidth = 9
    blurdev = 7.0

    ; Spatial luminance regularization (detail sharpening).
    ; 0 < alpha < 1: spatial decay weight
    ; P, integer: jiggle radius
    ; lambdaLum: regularization weight
    ; The regularization term's contribution to each iteration is scaled
    ; by lambdaLum * stepsize.
    ;
    ; Suggested range: alpha = 0.5-0.7; P = 2; lambdaLum = 0.005-0.1
    alpha = 0.5
    P = 2
    lambdaLum = 0.01

    ; Spatial chrominance (colour smoothing) weight. This mainly enhances
    ; the stability of the iterative enhancement, and you won't notice its
    ; effect until several hundred iterations in.
    ;
    ; Suggested range: 10 or 25.
    lambdaChrom = 10.0

    ; Inter-colour edge orientation dependency weight.
    ;
    ; Suggested range: 1.0-5.0
    lambdaOrient = 1.0
