A transparent library for processing and analyzing individual images of Optical Array Probes (OAPs)
Project description
1
111111 1221 21
112222111 112211 2 11222331113
11211 1211 1122333222 12321 1211
1221 1211 1231 1221 2321 1221
1221 1221 1232 1221 2321 1121
1221 11221 1231 2321 13211 113
1112211211 1121 12321 1123332111
111111 111211 121 1123211
1221 1
121
111
1
____________________________________________________________________
Version 0.0.14
Optical Array Processing (oap)
Licensed under the MIT license (see `LICENSE` file)
A transparent library for processing and analyzing individual
images of Optical Array Probes (OAPs)
Author: Lucas Grulich
Last Update: June 20, 2021
Introduction
The oap library is a transparent tool, written in Python and C, for working directly with image data from Optical Array Probes. It was initially developed for the preparation and classification of image data with neural networks.
This software is still in the alpha phase and will be further developed at irregular intervals! Comments on this project are always welcome! If you have suggestions for improvement, you can simply write me an email and I will try to implement them.
At the current state, the decompression algorithm has only been implemented for grayscale probes by Droplet Measurement Technologies (DMT).
- DMT Monoscale Decompression coming next!
The complete documentation can be found at https://oap.readthedocs.io
Installation
The oap library is available on PyPi, so simply open a terminal window and type at the prompt:
pip install oap
I always recommend the use of virtual environments (e.g. venv & pipenv) to avoid destroying your Python installation.
But if you don't want to work with virtual environments and still don't want to mess up your system directories, install the library as a user:
pip install oap --user
Usage
A short code snippet that decompresses an OAP imagefile and outputs the first 100 images to the console:
from oap import Imagefile
imagefile = Imagefile("Imagefile20200830120000")
# search for columns and rosettes
imagefile.classify()
# plot number of particles per flight second
imagefile.plot()
# plot number of rosettes per flight second
imagefile.plot(r=(0.5, 1))
# get all optical arrays containing particles of size
# 100 to 200 micrometers (area ratio) that were recorded
# between flight seconds 20000 and 22000.
array_list = imagefile.get_arrays(timespan=(20000, 22000),
area_ratio=(100, 200))
# print particle images
for array in array_list:
array.print()
Initialization & Compilation
Prerequisites
- Python >= 3.7
- Pipenv
pipenv install
python setup.py install
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
Built Distribution
File details
Details for the file oap-0.0.14.tar.gz
.
File metadata
- Download URL: oap-0.0.14.tar.gz
- Upload date:
- Size: 929.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff37ed7eb2c3bc7a541bdb66a0f5d0e4836bebbdbe638f497edbc5c93ef7e59 |
|
MD5 | 9591925dc0cebbc57088cc4ed8e196a7 |
|
BLAKE2b-256 | 63b1f90a11656595989e43428fceb1bb276ee5b5aab341cabe673550cc30aced |
File details
Details for the file oap-0.0.14-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: oap-0.0.14-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 952.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c594b8901c292971931701cd0efda2c30896d30079973ab5914a58c7266a467 |
|
MD5 | b072c782c524c5f0f58316ba689aba44 |
|
BLAKE2b-256 | 9c9e9595f1c27958bc54a417f747f1c9ee67dcfd4234957edca2f0f37a5a4f70 |