Skip to main content

A transparent library for processing and analyzing individual images of Optical Array Probes (OAPs)

Project description

PyPI - License version Documentation Status PyPI

                                           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

oap-0.0.14.tar.gz (929.2 kB view hashes)

Uploaded Source

Built Distribution

oap-0.0.14-cp38-cp38-win_amd64.whl (952.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

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