Skip to main content

quick MTF for Line_pair and SFR

Project description

Copyright (c) 2022 lorry_rui , Fremont ,USA

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

*for image quaility test purpose like lens focus test @ Lorry RUi

======================= Homepage: quickMTF

:github_url: https://github.com/Lorrytoolcenter/quickMTF

Main Features

  • Quick calculation of MTF values for both linepair and slant edge MTF.
  • Built-in GUI for image debugging and location picking.
  • Plot MTF chart
  • GUI:
  • Check measure position percentage feature
  • Undo: Undo one test.
  • Clear all: Clear all tests.
  • Save current display: Save the current scene.
  • Save current image: Save the image with markers based on image size.

Mail to: :lorryruizhihua@gmail.com

This is a GUI Sample

.. image:: https://github.com/Lorrytoolcenter/quickMTF/doc/manual.png

.. image:: doc/manual.png :width: 600

.. image:: doc/sfr.png :width: 600

sample code for using lib quickMTF

.. code-block:: python

from quickMTF.quickMTF import quickMTF import cv2

if name == 'main': test = quickMTF() ROI_width = 600 ROIX = 1593 ROIY = 1500 image = cv2.imread("image.jpg") image = image[ROIY:ROIY+10, ROIX:ROIX+ROI_width]

   print(test.quicklinepairMTF(image, library='cv2'))  # linepair chart MTF value and pixels/line pair
   print(test.quicksfrMTF(image, cp=0.5))  # CP means cycles/pixel and out MTF value per c/p and slant angle
   print(test.quicksfrCP(image, mtf_indx=30))  # MTFindex means MTF and out Cycles/pixel per MTF value and slant angle

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quickMTF-2023.3.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quickMTF-2023.3.3-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file quickMTF-2023.3.3.tar.gz.

File metadata

  • Download URL: quickMTF-2023.3.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3

File hashes

Hashes for quickMTF-2023.3.3.tar.gz
Algorithm Hash digest
SHA256 69ffd9e2a0af44909118dcbe8cd2929da8a4a16ac56e0f2f06a21d9c5d817ffe
MD5 6725a3359c00bdd2805287f7809ef1d1
BLAKE2b-256 98057b42b55849a8ae03ca1c92644aa937fd4d43813ae722b2f503498ec8252e

See more details on using hashes here.

File details

Details for the file quickMTF-2023.3.3-py3-none-any.whl.

File metadata

  • Download URL: quickMTF-2023.3.3-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3

File hashes

Hashes for quickMTF-2023.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1baba954f4815dabfadc29eb7faf48ef6f3164c06d81ad167fd7e9823f1a708e
MD5 eb833c5f04a345540088879ba96ea47e
BLAKE2b-256 66458c9813d36b6ff18c4528a445e2e546870523196a518c6cdee4c1a82a7c09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page