Slanted Edge MTF

Author: Carles Mitja (carles.mitja at fundacio.upc.edu), Raquel Revuelta.
History: 2008/01/31: First version
Limitations:
Source: SE_MTF.jar
Installation: Download SE_MTF.jar into the plugins folder, then restart ImageJ.
Description:

The ImageJ plugin SE_MTF (short for Slanted Edge Modulation Transfer Function) has been developed by Carles Mitja and Raquel Revuelta at the Image Quality Laboratory (LQI, short for Laboratori de Qualitat de la Imatge) in the Center of the Image and the Multimedia Technology (CITM, short for Centre de la Imatge I la Tecnologia Multimedia) from the Polytechnic University of Catalonia (UPC, Spain). The authors want to be grateful with Jaume Escofet from the Optics and Optometry Department (UPC), Gabriela Zuniga from the CITM and the Multimedia Graduate student Josep Dominguez.

The plugin performs MTF calculations only over slanted vertical edge images with dark side at left; If the picture is taken from an horizontal slanted edge, the image must be rotated 90� before run the plugin. The edge can occupy the whole image (Fig., 1) or the user can select a ROI to be analyzed (Fig., 2). The method used to calculate the MTF from a slanted edge is fully described in the bibliography (see references bottom).

Fig., 1

Fig., 2

As usual in ImageJ, the file SE_MTF.jar must be copied to the plugin folder or subfolder; after restart ImageJ, the SE_MTF label will appears in the Plugins menu. On activation, it will open the SE_MTF frame with the button Generate MTF, as is shown in the Fig., 3.

Generate_MTF.gif Fig., 3

It is necessary to have an opened image prior to activate the Generate MTF button, otherwise ImageJ shows an Error frame with the message �There are no images open. Process cancelled�; after pressing it, ImageJ can show one of the following messages:

o Warning, �All image selected� if there is no ROI selected in the active image window. The user can press the OK button and the plugin will use all image rows to calculate the MTF. If a ROI is selected, the message will not appear and the MTF is calculated from the pixels of selected rows.

o Error, "Line or rectangular selection required.Process canceled".

o MTF Options. This last frame takes different aspect related with the image bit depth.

For images in greyscale mode, the MTF Options frame shows the message �This is a greyscale image, no options available� and the user can select a sample size in pixels (32, 64, 128, 256 or 512); the figures are the number of pixels at the edge used to make the calculations and half the selected quantity is taken on both sides of the edge, Fig., 4. The different options can be used to take enough representative data both in images with low or high spatial resolutions. Obviously, the figure selected must be smaller than the image width or ROI selected; nevertheless, the plugin launch an error message if the figure selected is bigger than the ROI or image width.

Options_GRAY.gif Fig., 4

If there is an RGB image opened, the frame MTF Options offers to choose between select the R, G or B channel or to perform the average measure, Fig., 5; if the �Channels average� option is selected, the average is done as plain or weighted average depending on options selected in ImageJ Conversion Options (see ImageJ documentation). The R, G and B channels MTF can be calculated successively, selecting the appropriate option each time.

For images that ImageJ opens as an stack (16bit, etc.), the plugin offers the frame MTF Options as in the greyscale images and the calculations are done on the active slice; the user can make successive channel calculations or convert to an RGB image if channels average is preferred. Otherwise, if the needs are to calculate the channels average MTF the stack must be previously flattened with the Image>Stacks>Z Project>Average intensity command

Options_RGB.gif Fig., 5

After the button OK is pressed, the user can find the messages:

o "Error","sample size is bigger than selection width.Process canceled". The sample size is the distance that will be analyzed from the edge sideways. If the sample size is bigger than the ROI, plugin cause an error.

o "Error", "Out of image bounds.Process canceled". If the edge is not centered on the image or is too tilted, sample size could not be appropriate.

Otherwise, the plugin run the calculations and shows as a result four plots labelled with the SPP_, ESF_, LSF_ and MTF_ prefixes followed by the file name. ESF, LSF and MTF plots are calculated and traced as described in the MTF bibliography. SPP plot (short for Sampling Periodicity Plot) is a plot showing the result to apply the Fourier Transform Function to the series of the maximum values of the LSF used in the MTF calculations; the plot is a valuable indicator of periodicity sampling reliableness performed by the system because of the slanted position of the edge related with the sensor grid. In general, cheap cameras or scanners show a confused SPP with no clearly isolated peaks; conversely, a well calculated file from a professional camera or high end scanner shows a clearly isolated peak related with the number of pixel rows that is occupied by the period of sampling.

The four plots generated by the plugin takes the size and proportions from the previously selected options by the user in the Edit>Options>Profile plot options menu in ImageJ. The represented units are indicated in each plot and the user can take advantage of the three buttons below the plots in order to list, save or copy the plot values and export it as is usual in ImageJ. Finally, the plot images can be saved as TIFF for further use.

Bibliography

AXFORD, N. R. (1999) MODULATION TRANSFER FUNCTION OF A DIGITAL CAMERA SYSTEM USING AN IMPLEMENTATION OF THE EDGE TECHNIQUE. [En linea]. P�gina web, URL http://www.wmin.ac.uk/itrg/is/msc/mtflab.pdf [consulta 26/11/02].

BOREMAN, Glenn D. (2001) MODULATION TRANSFER FUNCTION IN OPTICAL AND ELECTRO-OPTICAL SYSTEMS. SPIE Press. Bellingham, Washington.

ISO / TC42N 4230 (1997) ELECTRONIC STILL PICTURE IMAGING. SPATIAL FREQUENCY RESPONSE (SFR) MEASUREMENTS.International Organisation for Standarisation.

JACOBSON, R. E., RAY, S. F., ATTRIDGE, G. G. y AXFORD, N. R. (2000) THE MANUAL OF PHOTOGRAPHY. Focal Press. 9�Ed. London.

MITJ�, Carles. y ESCOFET, Jaume. MEDIDA DE LA MTF EN C�MARAS FOTOGR�FICAS DIGITALES, 7� Reuni�n Nacional de �ptica, Universidad de Cantabria 2003, Santander.

WILLIAMS, Don y BURNS, Peter D. (2001) DIAGNOSTICS FOR DIGITAL CAPTURE USING MTF. Eastman Kodak Company. Rochester. PICS2001, Montreal (227-232).


|Plugins | Home |