{"id":1294,"date":"2014-02-20T15:09:19","date_gmt":"2014-02-20T15:09:19","guid":{"rendered":"http:\/\/harvestimaging.com\/blog\/?p=1294"},"modified":"2014-02-21T05:58:04","modified_gmt":"2014-02-21T05:58:04","slug":"how-to-measure-modulation-transfer-function-1","status":"publish","type":"post","link":"https:\/\/harvestimaging.com\/blog\/?p=1294","title":{"rendered":"How to Measure Modulation Transfer Function (1)"},"content":{"rendered":"<p>In a simple wording, the modulation transfer function or MTF is a measure of the spatial resolution of an imaging component.\u00a0 The latter can be an image sensor, a lens, a mirror or the complete camera.\u00a0 In technical terms, the MTF is the magnitude of the optical transfer function, being the Fourier transform of the response to a point illumination.<\/p>\n<p>The MTF is not really the most easiest measurement that can be done on an imaging system.\u00a0 Various methods can be used to characterize the MTF, such as the \u201cslit image\u201d, the \u201cknife edge\u201d, the \u201claser-speckle technique\u201d and \u201cimaging of sine-wave patterns\u201d.\u00a0 It should be noted that all method listed, except the \u201claser-speckle technique, measure the MTF of the complete imaging system : all parts of the imaging system are included, such as lens, filters (if any present), cover glass and image sensor.\u00a0 Even the effect of the processing of the sensor\u2019s signal can have an influence on the MTF, and will be include in the measurement.<\/p>\n<p>In this first MTF-blog the measurement of the modulation transfer function based on imaging with a sine-wave pattern will be discussed.\u00a0 It should be noted that in this case dedicated testcharts are used to measure the MTF, but the pattern on the chart should sinusoidally change between dark parts and light parts.\u00a0 In the case a square-wave pattern is used, not the MTF but the CTF (= Contrast Transfer Function) will be measured.\u00a0 And the values obtained\u00a0 for the CTF will be larger than the ones obtained for the MTF.<\/p>\n<p>The method described here is based on the work of Anke Neumann, written down in her MSc thesis \u201cVerfahren zur Aufloesungsmessung digitaler Kameras\u201d, June 2003.\u00a0 The basic idea is to use a single testchart with a co-called Siemens-star.\u00a0 An example of such a testchart is illustrated in Figure 1.<\/p>\n<p align=\"center\"><a href=\"http:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/lowF_72_wit_start.bmp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1295\" title=\"lowF_72_wit_start\" src=\"http:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/lowF_72_wit_start.bmp\" alt=\"\" \/><\/a><\/p>\n<p align=\"center\"><em>Figure 1 : Output image of the camera-under-test observing the Siemens star.<\/em><\/p>\n<p>(Without going further into detail, the testchart contains more structures than used in the reported measurement performed for the MTF.) \u00a0The heart of the testchart is the Siemens star with 72 \u201cspokes\u201d.\u00a0 As can be seen the distance between the black and white structures on the chart is becoming larger if one moves away from the center of the chart.\u00a0 In other words, the spatial frequency of the sinusoidal pattern is becoming lower at the outside of the Siemens star, and is becoming higher closer to the center of the Siemens star.\u00a0 Around the center of the Siemens star, the spatial frequency of the sinusoidal pattern is even too high to be resolved by the camera-under-test and aliasing shows up.\u00a0 In the center of the Siemens star a small circle is included with 2 white and two black quarters.\u00a0 These are going to play a very important role in the measurements.<\/p>\n<p>The measurement procedure goes as follows :<\/p>\n<ol>\n<li>Focus the image of the Siemens star, placed in front of the camera, as good as possible on the imager.\u00a0 Try to bring the Siemens star as close as possible to the edges (top and bottom) of the imager,<\/li>\n<li>Shoot an image of the testchart (in the example described here, 50 images were taken and averaged to limit the temporal noise).<\/li>\n<\/ol>\n<p>In principle, these two steps is all one needs to be able to measure\/calculate the MTF.\u00a0 But to obtain a higher accuracy of the measurements, the following additional steps might be required :<\/p>\n<ol>\n<li>Cameras can operate with or without a particular offset corrected\/added to the output signal.\u00a0 For that reason it might be wise to take a dark reference frame to measure the offset and dark signal (including its non-uniformities) for later correction.\u00a0 In the experiments discussed here, 50 dark frames were taken and averaged to minimize the temporal noise.<\/li>\n<li>The data used in the measurement is coming from a relatively large area of the sensor and is relying on an uniform illumination of the complete Siemens star.\u00a0 Moreover, the camera is using a lens and one has to take into account the lens vignetting or intensity fall-off towards the corners of the sensor.\u00a0 For that reason a flat-fielding operation might be needed : take an image of a uniform test target, and use the data obtained to create a pixel gain map.\u00a0 In the experiments discussed her, 50 flat field images were taken and averaged to minimize the temporal noise.<\/li>\n<li>The camera under test in this discussion delivers RAW data, without any processing.\u00a0 If that was not the case it would have been worthwhile to check the linearity of the camera (e.g. use of a gamma correction) by means of the grey squares present on the testchart as well.<\/li>\n<\/ol>\n<p>Taken all together the total measurement sequence of the MTF characterization is then composed of :<\/p>\n<ol>\n<li>Shoot 50 images of the focused testchart, and calculate the average. \u00a0The result is called : <em>Image_MTF,<\/em><\/li>\n<li>Shoot 50 flat field images with the same illumination as used to shoot the images of the focused testchart, and calculate the average image of all flat field images. The result is called : <em>Image _light,<\/em><\/li>\n<li>Shoot 50 images in dark, and calculate the average image of all dark image.\u00a0 The result is called <em>Image_dark,<\/em><\/li>\n<li>Both <em>Image\u00ad_MTF<\/em> and <em>Image_light<\/em> are corrected for their offset and dark non-uniformities by subtracting <em>Image_dark,<\/em><\/li>\n<li>The obtained correction (<em>Image_light<\/em> \u2013 <em>Image_dark)<\/em> will be used to create a gain map for each pixel, called <em>Image_gain,<\/em><\/li>\n<li>The obtained correction (<em>Image_MTF <\/em>\u2013<em> Image_dark<\/em>) will be corrected again for any non-uniformities in pixel illumination, based on <em>Image_gain<\/em>.<\/li>\n<\/ol>\n<p>If this sequence is followed, an image like the one shown in Figure 1 can be obtained.<\/p>\n<ol>\n<li>Next the pixel coordinates of the center of the testchart need to be found.\u00a0 This can be done manually or automatically.\u00a0 The latter is done in this work, based on the presence of the 4 quadrants in the center of the testchart.<\/li>\n<li>Once the centroid of the testchart is known, several concentric circles are drawn with the centroid of the testchart as their common center.\u00a0 An example of these concentric circles on top of the testchart is shown in Figure 2.<\/li>\n<\/ol>\n<p align=\"center\">\u00a0<a href=\"http:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/lowF_wit_circles.bmp\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1296\" title=\"lowF_wit_circles\" src=\"http:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/lowF_wit_circles.bmp\" alt=\"\" \/><\/a><\/p>\n<p align=\"center\"><em>Figure 2 : Siemens\u00a0star with concentric circles (shown in green), with their centers coincides with the centroid of the testchart (red cross). <\/em><\/p>\n<ol>\n<li>After creating the circles, the sensor output values of the various pixels lying on these circles are checked.\u00a0 On every circle the pixel values change according to a sine wave, of which the frequency is known (72 complete cycles of the sine wave and it radius, in number of pixels, can be calculated).\u00a0 For each of the circles, a theoretical sine wave can be fitted through the measured data.\u00a0 Consequently for each circle a parameter can be found that corresponds to the amplitude of the fitted sine wave.<\/li>\n<li>In principle the MTF curve could be constructed, the only missing link is the value of the MTF for very low frequencies close to DC.\u00a0 This value can be found as the difference between the white values and black values of the four quadrants right in the middle of the testchart.<\/li>\n<li>Normalizing the obtained data completes the MTF curve : the calculated amplitudes of the sine waves are normalized with the signals of the four quadrants in the middle of the chart, the frequencies of the sine waves are normalized to the sampling frequency of the imager (6 mm pixel pitch).<\/li>\n<\/ol>\n<p>The outcome of the complete exercise is shown in Figure 3.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/next_blog_12.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1302\" title=\"next_blog_1\" src=\"http:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/next_blog_12-300x220.jpg\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/next_blog_12-300x220.jpg 300w, https:\/\/harvestimaging.com\/blog\/wp-content\/uploads\/2014\/02\/next_blog_12.jpg 806w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p align=\"center\">\u00a0<em>Figure 3 : Modulation Transfer Function of the camera-under-test.<\/em><\/p>\n<p>As indicated in Figure 3, the MTF measurement is done with white light created by 3 colour LED arrays (wavelengths 470 nm, 525 nm, 630 nm).\u00a0 As can be seen from the curve, the camera has a relative low MTF, around 8 % at Nyquist frequency (f<sub>N<\/sub>).\u00a0 In theory an imager with a large fill factor can have an MTF value of 60 % at f<sub>N<\/sub>.\u00a0 But this camera is performing far away from this theoretical value.\u00a0 But one should not forget, this MTF measurement does include ALL components in the imaging system, not just the sensor !<\/p>\n<p>Now that the MTF measurement method is explained, in the next blogs more MTF results will be shown and compared.<\/p>\n<p>Albert, 20-02-2014.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a simple wording, the modulation transfer function or MTF is a measure of the spatial resolution of an imaging component.\u00a0 The latter can be an image sensor, a lens, a mirror or the complete camera.\u00a0 In technical terms, the MTF is the magnitude of the optical transfer function, being the Fourier transform of the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1294","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1294"}],"version-history":[{"count":8,"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1294\/revisions"}],"predecessor-version":[{"id":1306,"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1294\/revisions\/1306"}],"wp:attachment":[{"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harvestimaging.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}