Skip to main content

Image IO, correlation, PIV, particle tracking tools collection.

Project description

myimagelib

myimagelib is an attempt to make the set of tools, e.g. image analysis and file I/O, an installable package. These code are initially just for my own convenience. As time goes on, they gradually become an integral part of my daily coding. When I share my code with friends, I always find it a problem when they cannot import in their local environment, and I have to ask them to download the code from my GitHub, or rewrite my code using packages that are already available on PyPI. This has been a PITA for a while, and I realize that it could be useful to make the code available on PyPI, too. So that my friends can download my code with a simple pip install.

I understand that this package consists of code for many different purposes and they are not organized very nicely. It is only intended for people who are going to run my notebooks, but need the functions that I wrote earlier in this library.

Installation

pip install git+https://github.com/ZLoverty/mylib.git

Examples of use

>>> from myimagelib import show_progress
>>> show_progress(0.5, label="test", bar_length=40)

The result is:

test [####################--------------------] 50.0%

See the documentation for more details!

Versions

  • 2.0.0: Move release_note.md to README.md; remove openpiv and matplotlib from dependencies; remove readdata, dirrec, PIV, apply_mask functions; start to use consistent versioning (last digit for bug fix, middle digit for added feature, first digit for major changes); no longer maintain the PyPI package, newer versions are only available from GitHub.
  • 1.5.4: imfindcircles() now exclude overlap using max_radius; handle nan in xy_bin.
  • 1.5.3: Fix a distance filter bug.
  • 1.5.2: Improve imfindcircles() with new strong edge criterion and multi-stage detection.
  • 1.5.1: Reorganize the documentation.
  • 1.5.0: Lose weight project: the current package spreads very broadly. The reuse rates of most functions are quite low. Therefore, I'm planning to remove functions that are not useful any more, and figure out a focus of this package; remove xcorr_funcs.py and fit_circle_utils.py; add frequently used functions to __init__.py; clean up the imports; add a function imfindcircles() based on Atherton 1999
  • 1.4.0: Implement doctest to test the code automatically; Add release note; Remove GitHub action that automatically builds docs. Instead build docs manually and upload to the "gh-pages" branch. See code notes for procedures; Add update_mask to compact_PIV; Add to_csv to compact_PIV; Handle NaN values in to8bit.
  • 1.3.0: Fix the documentation. Due to the folder structure change, autodoc does not work correctly, and all the documentations currently are not working. Fix it in the next release.
  • 1.2.0: Reorganize the repo as a PyPI package and publish on PyPI.
  • 1.1.0: All the functions and scripts that output PIV data should put PIV in a .mat container, which only save x, y, mask, labels in formation once, and save u, v as 3D arrays; The operations that based on *.tif images should be transformed to work on raw images.

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

myimagelib-2.0.1.tar.gz (10.2 MB view details)

Uploaded Source

Built Distribution

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

myimagelib-2.0.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file myimagelib-2.0.1.tar.gz.

File metadata

  • Download URL: myimagelib-2.0.1.tar.gz
  • Upload date:
  • Size: 10.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for myimagelib-2.0.1.tar.gz
Algorithm Hash digest
SHA256 0ae4bed954ea8fa93e91b6e53c2ac636fa4bc8c5005e03787d882be1096eba9f
MD5 783e246716a1a2c6a3bdad4973e2c991
BLAKE2b-256 07499edb8dac6162b59e7d8a5effa54e03bd740de7637f1ddead85091b88855b

See more details on using hashes here.

File details

Details for the file myimagelib-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: myimagelib-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for myimagelib-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efa33b2a45a727b987c56121e5f12c5894c6794ab7de536f0d22569f98a22dd6
MD5 4223f2fb2ed7bbb21a1fd2b46a41a140
BLAKE2b-256 505f07ee5f7ff81b1d02fe2c33915e814b24734a7db67801b7763637ff530f77

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