Mapper (pre- version 0.7.16). The ‘loess’ algorithm is also recommended if you are using a
“Bayer channel” setting of ‘red’ or ‘blue’, since this algorithm is better at dealing with sparse
image subsets near critical edge orientations — see [5] for details.
The middle-right panel, Lens distortion correction, deals with methods to work around lens
distortion. Although MTF Mapper supports multiple lens distortion correction methods, one
should keep in mind that the impact of lens distortion on slanted-edge MTF measurements is
dependend on the length of the edges. Most MTF Mapper test charts feature relatively small
targets (the black rectangles / trapezoids), so the impact of lens distortion will be relatively
small. Having said that, the default is for MTF Mapper to use a ‘piecewise-quadratic’ to
model each edge, which should compensate for severe lens distortion on very large targets
without any meaningfull loss of accuracy. This method is suitable even when using fisheye
lenses. Section 8covers this topic in more detail.
The bottom-right panel, Advanced, covers a mixed bag of options.
Pixel size: The ‘Pixel size’ field is almost self-explanatory; this field must be set to your
sensor’s pixel pitch, expressed in micron (micrometre) units. This field must be set to
the correct value if the ‘Line pairs/mm units’ option is selected in the Flags panel; if
that flag is disabled, then the value of the ‘Pixel size’ field is irrelevant, and will not be
used by MTF Mapper.
Threshold: The most mysterious option in MTF Mapper is the ‘Threshold’ field. To un-
derstand what this parameter does, one has to consider how MTF Mapper operates.
The first step in MTF Mapper’s processing is to threshold the (grayscale) image so
that the dark targets (e.g., black rectangles) are separated from the lighter background
of the test chart. This thresholding step is locally adaptive, but it is still controlled
by a threshold parameter (between 0.0 and 1.0) to select just how dark an object has
to be relative to its surroundings. The default value of 0.55 should work well for most
properly-exposed images, provided that the test chart fills most of the image.
But occasionally this will fail. Consider the case where you have set up your test chart
indoors, with the field of view adjusted to include the whole test chart, with just a little
bit of the background showing around the chart. If this background scene happens to
include a light source that is much brighter than the white part of the test chart, then
that light source will ‘contaminate’ the nearby part of the test chart, causing MTF
Mapper to not detect the black targets (rectangles) there. In other words, the classic
symptoms would be that only some of the black targets are correctly annotated in the
Annotated image output. The first (and best) solution would be to not have a bright
light source in the frame. The other potential solution is to decrease the ‘Threshold’
value until all the black targets are successfully detected. Starting from the default
value of 0.55, drop down to 0.4, 0.3, and maybe down to 0.2 if necessary.
You might wonder why I do not just set the default value to 0.3. Well, you could have
the opposite scenario where you have spurious dark objects in the background that
happen to be rectangular enough for MTF Mapper to detect. The default value of 0.55
is a reasonable balance between these two extremes, and works well enough until it
doesn’t, in which case you can decrease it. Simple enough, right?
MTF-XX: By default, MTF Mapper will calculate MTF50 for most of its outputs, such
as the Annotated image,Grid, and Profile outputs. MTF50 is defined as the resolution
(either in lp/mm, or cycles/pixel) at which the MTF curve first reaches a value of 50%
contrast. This option allows you to specify a different target contrast value in the range
[10%, 90%], so you can calculate MTF20 or whatever you desire. This affects all MTF
Mapper outputs except the SFR curves and the Lensprofile output.
Lensprofile lp/mm: By default, MTF Mapper will produce Lensprofile plots at resolutions
of 10 lp/mm and 30 lp/mm, corresponding to the popular resolutions chosen by lens
16