Giter VIP home page Giter VIP logo

sfr_calculation's Introduction

#ISO 12233:1999 SFR calculation
SFR is the short for "Spatial Frequency Response". It represents the response of an imaging system in different spatial frequency. Imagining we use a almost perfect imaging system to take a picture of an pattern which has strong pixel value chages(from 0 to 255 or 255 to 0). The pixel value change of edge will vary very fast and strong. But if we use a bad imaging system to take the same picture, the pixel value change of the edge would be slow and small. Because a bad imaging system will have serious diffraction while the light incident through lens of imaging system lens. This will scatter the light and let the light received by several pixels. So the resoultion of the edge part will decrease. And the SFR is using this value change of edge to estimate the quality of imaging system.


Normally, the SFR calculation will use image of ISO12233 test chart which took by the imaging system we want to test. And the roi of slanted-edge pattern in ISO12233 test chart will be used for SFR calculation.

Here is the original image which took by my web-cam alt text

I using opencv mouse event to crop the ROI
alt text

Here is the ROI I cropped
alt text
After cropping the ROI, SFR calculation will begin and it will auto save a csv file of mtf values in different spatial frequency.

Reference: ISO12233:1999(E)

sfr_calculation's People

Contributors

rayxie29 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.