Skip to content

Commit b9f171e

Browse files
authored
Merge pull request #13 from domengorjup/master
ENH: Added Showcase, updated readme
2 parents cda2a86 + 1b91d9b commit b9f171e

File tree

5 files changed

+259
-2
lines changed

5 files changed

+259
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,4 @@ ENV/
9898

9999
# other
100100
server_user_id.txt
101+
temp/

Showcase.ipynb

+241
Large diffs are not rendered by default.

pyMRAW.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import warnings
3131
import xmltodict
3232

33-
__version__ = '0.31'
33+
__version__ = '0.32'
3434

3535
SUPPORTED_FILE_FORMATS = ['mraw', 'tiff']
3636
SUPPORTED_EFFECTIVE_BIT_SIDE = ['lower', 'higher']

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pyMRAW"
7-
version = "0.31"
7+
version = "0.32"
88
authors = [{name = "Jaka Javh, Janko Slavič, Domen Gorjup", email = "janko.slavic@fs.uni-lj.si"}]
99
maintainers = [{name = "Janko Slavič et al.", email = "janko.slavic@fs.uni-lj.si"}]
1010
license = "MIT"

readme.rst

+15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@ pyMRAW
33

44
Photron MRAW File Reader.
55
-------------------------
6+
7+
`pyMRAW` is an open-source package, enabling the efficient use of the Photron MRAW video files in Python workflows.
8+
9+
It's main feature is the use of memory-mapped ([`np.memmap`](https://numpy.org/doc/stable/reference/generated/numpy.memmap.html)) arrays to create memory maps to locally stored raw video files and avoid loading large amounts of data into RAM.
10+
11+
.. warning::
12+
To take advantage of pyMRAW's memory-mapping functionality, make sure to save MRAW files either in 8-bit or 16-bit formats, corresponding to standard data types `uint8` and `uint16`! Using pyMRAW to read 12-bit MRAW files is possible, but requires loading the complete image data into RAM to produce standard Numpy arrays.
13+
14+
To load `.mraw` - `.cihx` files, simply use the `pymraw.load_video` function::
15+
16+
import pyMRAW
17+
images, info = pyMRAW.load_video('data/beam.cihx')
18+
19+
For more info, please refer to the `Showcase.ipynb` notebook.
20+
621
We developed this module while working on this publication:
722
J. Javh, J. Slavič and M. Boltežar: The Subpixel Resolution of Optical-Flow-Based Modal Analysis,
823
Mechanical Systems and Signal Processing, Vol. 88, p. 89–99, 2017

0 commit comments

Comments
 (0)