A lightweight python package for processing .tif image data files.
Project description
tiff2csv
This is a simple python package for processing .tif image data and outputting .csv files.
The intention is to operate on a sequence of .tif images and, based on a given discretization size,
output a .csv file containing the voxel data.
You can find the Github repository on https://github.com/alhermann/tiff2csv.git.
Getting started
You can use the Python package manager Pip for downloading the module from https://pypi.org/project/tiff2csv.
pip3 install tiff2csv
Example
Suppose you have stored a stack of .tif image files in an upper subdirectory called ../tiffs. In order to run the main module, you have to provide this path as a mandatory argument. For the description of additional arguments, you can use the -hor --help flag
python3 -m tiff2csv --help
which produces the following output:
usage: __main__.py [-h] [-n imgNum] [-r resolution] [-d dFile] [-p pooling] sFile [sFile ...]
Script that reads a sequence of .tif files and outputs .csv file of voxel data
to user specified directory
positional arguments:
sFile the source file of the .tif image sequence
optional arguments:
-h, --help show this help message and exit
-n imgNum number of .tif images
-r resolution voxel resolution in the .tif images
-d dFile the destination directory where the output should go to
-p pooling optionally activate 2D pooling on the input images
For an exemplary CT image resolution of 5mu the following command runs a max-pooling compression on the input image data files and outputs a voxelization.csv voxel data file to user specified (in this case parent) directory.
python3 -m tiff2csv ../tiffs/ -r 5e-6 -d ../ -p True
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tiff2csv-0.0.3.tar.gz.
File metadata
- Download URL: tiff2csv-0.0.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42f687de235479675486796b5af87830daf5c4fbe900c473ed7f0f871694c3cd
|
|
| MD5 |
2d19958ffec2f18b58415e29fd828fa0
|
|
| BLAKE2b-256 |
812a048d6b1e99e4969f0a47817d42db470906e931efa76ac57b09d5097ddffc
|
File details
Details for the file tiff2csv-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tiff2csv-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d279300fbaf09e51c5cb042afff929321c5c8ba8f595b17fee8a3b1a9d66f840
|
|
| MD5 |
ed2521cfe8b54918522216d433fd872c
|
|
| BLAKE2b-256 |
6117b6d63a8d65c5729d818d3da02395db6fbe69a1293a8884c3af11fa6caed4
|