Presentation of MTF Simulation of Lenses


Simulation of the performance of photographical lenses







Introduction

The software MTF Simulation of Lenses perform a simulation of the performance of lenses. In fact, the user select any lens in a data base and a picture. This picture is doe to the simulation modified as the lens will do.


For the simulation the software compute and take in account the following parameters:

There are 2 kind of MTF diagrams:



Mathematics





To process a picture, we need to work on a polar coordinates (P,I,J) on the concerned point (P) to process. O is the center of the lens, which is also the center of the negative film.

So OP is the image height (u on Zeiss data sheets). P' is the result of the simulation.

Distortion

The distortion can be easily calculated with the formula:

P' is the new point resulted. The distortion is also a locally translation.

MTF and Relative illuminance in the case of a lens without distortion

The principle of the calculation is to perform an FFT (in 2D) in the polar coordinates, perform an attenuation of the coefficients and perform the inverse FFT.


This FFT produce:



So we obtain after processing the FFT the following result:

The computation of the MTF and the relative illuminance consist of multiplicating each Ai,j term through the coefficient of attenuation Mi,j described later:



The attenuation coefficient Mi,j are:

MTF and Relative illuminance with distortion

To perform the computation, Optical do first the translation caused by the distortion, then apply the calculation of the MTF and the relative illuminance effect.

The Program usage

When MTF Simulation of Lenses is started the following main window will be displayed:



Click on File->Open to load a data base of lenses. A demonstration data base (demo.ldb) is delivered. It contain some data of fictive lenses:


Click on Data Base->Visualization to see the characteristic of each lens in the data base:


The first line contain the key for choosing the lens:


To start the simulation click onto Operation->Simulation on the main window. The following window appear:

First choose a lens and then a source picture on which the computation will be performed:


After it, select the output window. This window correspond to the size of the negative.

Attention: Depending on the precision and the size of the window, the quantity of the memory request and the computation time can be very important. (for a whole 32mm negative with a precision of 40 lines/mm, the computation can take a half day for a Pentiun 4)


The last operation is the selection of the precision. It is possible to modify it directly (using the text entry) or using the slider. If the distortion should be calculated the field distortion must be selected.


Now, click on simulate to start the simulation.

After the computation, the result appear on a new window which permit to compare the simulated picture with the source picture:

It is possible to zoom in/out the simulated and the original picture by selecting an area with the mouse.



Examples of simulations

Distorsion

This is the result of the simulation of a lens with a distortion which go from +100% to -100%.



MTF

MTF Sagittal+Tangential


This example is the simulation of a lens which have a MTF equal to 0 for 5 lines/mm. The source picture is composed from lines with a frequency of 5 lines/mm. The result is a picture grey.

MTF Sagittal

This example is the simulation of a lens which have a MTF sagital equal to 0 for 5 lines/mm. The source picture is composed from lines with a frequency of 5 lines/mm. The lens filter all lines which are going through the center of the lens.


MTF Tangential

This example is the simulation of a lens which have a MTF tangential equal to 0 for 5 lines/mm. The source picture is composed from lines with a frequency of 5 lines/mm. The lens filter all lines which are tangential to a circle centered on the center of the lens.


When the source picture contain only some circles with a spatial frequency of 5 lines/mm , the result is a picture fully gray.


Address

Author: Sebastien Fricker

E-Mail: friseb123@users.sourceforge.net