No project description provided
Project description
stk
Toolkit for 3D volume processing
Build
mkdir build && cd build
cmake ..
make
CMake options:
STK_BUILD_EXAMPLES: build example programsSTK_BUILD_TESTS: build testsSTK_USE_CUDA: build with CUDA supportSTK_WARNINGS_ARE_ERRORS: compilation will fail on warningsSTK_BUILD_WITH_DEBUG_INFO: include debug symbols in the binariesSTK_ENABLE_FAST_MATH: enable unsafe (non IEEE 754-compliant) optimisationsSTK_LOGGING_PREFIX_FILE: add the file name as prefix to each log message
When building with STK_USE_CUDA, in case the version of gcc selected by
CMake was not compatible with the one required by CUDA, it is possible to
specify a different executable with -DCMAKE_CUDA_FLAGS="-ccbin gcc-XX", where
gcc-XX is a version of gcc compatible with your CUDA version.
Python API
A minimalistic Python API is also provided.
Install
python setup.py install
Example usage
import stk
import numpy as np
# Create volume directly from numpy
vol = stk.Volume(np.zeros((5,5,5)).astype(np.float32), spacing=(2,2,2))
# or read volume from file
vol = stk.read_volume('test.nrrd')
# Modify data (numpy array points to the volume data)
data = np.array(vol, copy=False)
data[0:10] = 0.0
# Access meta data
vol.origin = (2, 2, 2)
vol.spacing = (3, 3, 3)
# Write volume
stk.write_volume('test-out.nrrd', vol)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 python_stk-0.4-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: python_stk-0.4-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 232.4 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d9d808e93a044e9b4e0e9f69eb25b6c2026d4d73ee54bbb69ef18bcb5465f24
|
|
| MD5 |
613b94763aef525766060a2a60c25bae
|
|
| BLAKE2b-256 |
d236a8d5656c0ab21723e7e40b5d026163ff6d6c2f89061edf5864a4f3b555a2
|
File details
Details for the file python_stk-0.4-cp38-cp38-manylinux1_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 540.2 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb5a288891307fef4710bd24984336e73fcea369c46bf02e5b158f61bd47f50f
|
|
| MD5 |
36872e18b938946ab796724168a89d1e
|
|
| BLAKE2b-256 |
65fe659829cb1b243bc1b7b5f0624a7f4bf449cb50481d3835e4c114b4fca960
|
File details
Details for the file python_stk-0.4-cp38-cp38-macosx_10_13_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp38-cp38-macosx_10_13_x86_64.whl
- Upload date:
- Size: 272.0 kB
- Tags: CPython 3.8, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8497844e12d24bf87e986da43d7c8fbfc75c73d501f1ff26e43e33a1cce07cf
|
|
| MD5 |
865d8a60e6e55df3380ee4377f50b3cf
|
|
| BLAKE2b-256 |
884f79b31e3783520c60584be9aa53556d710e691ff1963ba4d6ace2684dc463
|
File details
Details for the file python_stk-0.4-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: python_stk-0.4-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 234.0 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47406e1100599c0cffd8b8b58e925a12aeab1dfd81eb5deb5519a6a3573eb340
|
|
| MD5 |
3ee14a53002a57e3e4826d5368cb1c73
|
|
| BLAKE2b-256 |
eeb5158c6df99426e8eafb66cd02cb559bbc1aec49eb896abc577bac8d3e1f40
|
File details
Details for the file python_stk-0.4-cp37-cp37m-manylinux1_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 566.3 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bde676bdce926dfe2975da6c1491a61d98eb186a11e2a2c5a9b66debe584221d
|
|
| MD5 |
f237f25e8a24d3655b0cc47910e41e99
|
|
| BLAKE2b-256 |
28316da8c7d7a2d7e25ed014f901f301b28908739d9bcc628b5362dd70a4c33a
|
File details
Details for the file python_stk-0.4-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 274.7 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0f8862ec96be922f84bba2d664b52ba56275fd39f0f132c9c63901bdddb118b
|
|
| MD5 |
9991362b07020083ce3eaf0b3febd19c
|
|
| BLAKE2b-256 |
04599da692dab69b9fc4eb02be49f51472bd7010c97b8b82e591655501f77688
|
File details
Details for the file python_stk-0.4-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: python_stk-0.4-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 234.1 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48261bc3fe85470f9fdf13dcc1e8f8cea621a0e263a6cf9be2966ae977186a6b
|
|
| MD5 |
ae223b4fb8d035d177861f457d50be8d
|
|
| BLAKE2b-256 |
11f6be9001d352c97d7da90b322b6f3eafe88ef2b65ba9fbbdab2a11a6be0987
|
File details
Details for the file python_stk-0.4-cp36-cp36m-manylinux1_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 566.4 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
623d3a8a47504de33524491486f8303a9e6c72fa37395de2df0448a47a272b1f
|
|
| MD5 |
18a5d98da21b85d911579969c2e33b00
|
|
| BLAKE2b-256 |
b0a7c6518db022eef049c01b22f06005e79d7dc6fa0bc13e553d49b0a8ee3ef6
|
File details
Details for the file python_stk-0.4-cp36-cp36m-macosx_10_6_intel.whl.
File metadata
- Download URL: python_stk-0.4-cp36-cp36m-macosx_10_6_intel.whl
- Upload date:
- Size: 542.1 kB
- Tags: CPython 3.6m, macOS 10.6+ Intel (x86-64, i386)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
661ff175a907479c2dc676361744275a27d02a1406cac328fff2c44a6c1e5b51
|
|
| MD5 |
c0524fbd6e49346a81f0c311919bca68
|
|
| BLAKE2b-256 |
742843b423cc9857428c95ef69ff8ab5c2854b8888cd8c0725ab10a577dd9b77
|
File details
Details for the file python_stk-0.4-cp35-cp35m-manylinux1_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 566.4 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f5ed452d8c8735e25ce42d7bc30db1097edf5e2571777cc22a85892fdb8e369
|
|
| MD5 |
a9e88892bed925c79efa65410deec764
|
|
| BLAKE2b-256 |
2bf55a69ec8ca6af946f808b3ceffbb859b6e465b9e7237c5266df475bf04edd
|
File details
Details for the file python_stk-0.4-cp35-cp35m-macosx_10_6_intel.whl.
File metadata
- Download URL: python_stk-0.4-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 542.1 kB
- Tags: CPython 3.5m, macOS 10.6+ Intel (x86-64, i386)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51feab7c5bedbf490cf35d4fdc10ebe7c4b51185103af5008d5830541d86959e
|
|
| MD5 |
a92423be36abd31823de5d1dc5a6495d
|
|
| BLAKE2b-256 |
178886882ee08abe31699dd41ead8ebcc9ca0f2ed3f0c8642c789583aa91a980
|
File details
Details for the file python_stk-0.4-cp34-cp34m-manylinux1_x86_64.whl.
File metadata
- Download URL: python_stk-0.4-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 566.3 kB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2276b89b8b76c743030afd23e0d505e4b3735f4845c06bdbee61ccd797920613
|
|
| MD5 |
1f16f51f0c3fadef897e8d076f2cb553
|
|
| BLAKE2b-256 |
29643dba3e19f16dd6d97bd1f201748806731e5dac02264f14961f08d6941c08
|