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
Metadata
Release files for tiff2csv 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tiff2csv-0.0.4.tar.gz | 5.4 kB | Without provenance | Details for tiff2csv-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tiff2csv-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for tiff2csv-0.0.4-py3-none-any.whl |
Total release size: 12.6 kB
Release files / tiff2csv-0.0.4.tar.gz
| Download URL | tiff2csv-0.0.4.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
542235a4046ed104a3cb15652a30c4c7ad945d5fd830c72f009b4660a8ba7020
|
|
BLAKE2b-256 checksum How to use checksums |
f08f75f5e9b178cf6f1cd535d2cb59d49fed6f669e09a48dec7bc295a8fe57e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tiff2csv-0.0.4-py3-none-any.whl
| Download URL | tiff2csv-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1e1058925e42438ef0476e15f3886f1092aaf651e506d36b160487ebf31f455
|
|
BLAKE2b-256 checksum How to use checksums |
b4cf5329ac0d8017a6e77c913cb7328f9987b9e9445d64815bedab2a7db85491
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for tiff2csv 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.