Skip to main content

Overview

ReadIM is a c++ wrapper to load DaVis Images and Vectors DaVis V8. ReadIM is a ‘low level’ interface to C++ libraries provided by LaVision GMBH.

Installation

This module is compiled. If there isn’t a binary you’ll need to have the appropriate build tools installed.

>>> pip install ReadIM

If this fails you will need to compile yourself. Clone the source and run the following.

>>> python setup.py build install
>>> python setup.py test

If the test passes then all should be okay.

Usage

To load a .vc7 file run:

>>> vbuff, vatts   =  ReadIM.extra.get_Buffer_andAttributeList('filename.vc7')
>>> v_array, vbuff = ReadIM.extra.buffer_as_array(vbuff)

similarly for a .im7 file run:

>>> vbuff, vatts   =  ReadIM.extra.get_Buffer_andAttributeList('filename.im7')
>>> v_array, vbuff = ReadIM.extra.buffer_as_array(vbuff)

Writing files

>>> atts = ReadIM.load_AttributeList({'attribute':'value'})
>>> ReadIM.WriteIM7('saved_file.im7', True, buff, atts.next)

Finally, memory cleanup is not automatic. To prevent memory leaks do the following:

>>> del(vbuff)
>>> ReadIM.DestroyBuffer(buff)
>>> ReadIM.DestroyAttributeListSafe(atts)

Download files

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

Source Distribution

ReadIM-0.8.2.tar.gz (132.1 kB view details)

Uploaded Source

Built Distribution

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

ReadIM-0.8.2-cp37-cp37m-win_amd64.whl (210.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file ReadIM-0.8.2.tar.gz.

File metadata

  • Download URL: ReadIM-0.8.2.tar.gz
  • Upload date:
  • Size: 132.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for ReadIM-0.8.2.tar.gz
Algorithm Hash digest
SHA256 6e76327c22c48c11239e7f24061b7f36d06a89ab13dc2c967363c8108635048a
MD5 8170453314825d8935b939c9a720a375
BLAKE2b-256 d0c313361c3818d5f0b542df18324a27b5bddefde4ee8e2555c37890115a7fb5

See more details on using hashes here.

File details

Details for the file ReadIM-0.8.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ReadIM-0.8.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 210.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for ReadIM-0.8.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 1733b3f85538142d11bf8d898b9bee201a296a6f4ad31c277474bd0fa6ee10a9
MD5 94ba5bb58b7a2859c81792b16b678512
BLAKE2b-256 b1c8dbc1a4e636c26c95b41061a74e27c82766221965701d2e7c972e5286c5ba

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.4

2 files

0.8.3

5 files

This release

0.8.2 This release

2 files

0.7.2

3 files

0.7.1

5 files

0.7.0

2 files

0.6.9

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page