MTF and image linearity functions are implemented in MTF.py and ImgLinearity.py. The MTF class takes a cropped image containing only a Siemens star chart, and the ImgLinearity class takes an X-Rite ColorChecker chart and utilizes the colorimetric data found here to create linearity plots for R, G, and B channels in an image.
The utilities folder contains some custom utilities I've created to facilitate sharpness, resolution, and linearity metrics in various projects.
The MTF_*.ipnyb
files in sample_analysis contain sample analyses I have done using both the MTF
and ImgLinearity
classes.
Sample .png and .pdf star charts are also provided.
- Useful resource for finding pixels to crop from: https://yangcha.github.io/iview/iview.html
- MTF paper: https://arxiv.org/pdf/1805.01872.pdf
- Link to high resolution test patterns
- Star chart links:
- Article on how to measure MTF with a star chart.
- German paper, English equivalent
- https://www.imatest.com/docs/starchart/
- Fatima Kahil's Github page
- Technical paper part 1 and part 2 by Zeiss