Pictologics
Pictologics is a Python library for radiomic feature extraction from medical images. It follows IBSI 1 (the features) and IBSI 2 (the filters), and it checks its results against the IBSI reference values.
Documentation (user guide, tutorials, API, benchmarks): https://martonkolossvary.github.io/pictologics/
Why Pictologics?
- 🚀 Fast: Numba compiles the computations for your computer, and they run on its fast cores. The Benchmarks page gives the time of each part.
- ✅ IBSI compliant: checked against the IBSI phantoms and data sets:
- IBSI 1 (features): 675 feature values pass; 21 more have a reference value without a tolerance (report).
- IBSI 2 Phase 1 (filters): 28 of 28 compared tests pass (report).
- IBSI 2 Phase 2 (filtered features): 9 of 9 tests pass (report).
- IBSI 2 Phase 3 (reproducibility): 153 scans, compared with 9 teams (report).
- 🔧 Versatile: reads NIfTI, NRRD, MetaImage and DICOM images, DICOM SEG, DICOM RTSTRUCT and 3D Slicer segmentations, and DICOM SR reports.
- ✨ Easy to use: pip installs it. One pipeline runs the preprocessing and the features, for one image or for a whole study.
- 🛡️ Predictable results: each configuration gives all its feature columns, also when a step fails (the values are then
NaN). A study table never has missing columns. - 🛠️ Maintained: Pictologics is developed to give robust radiomic features that describe the morphology of diseases on radiological images.
What Is New in 1.0.1
Pictologics 1.0.1 fixes a crash and two features that IBSI defines without a reference value. The API does not change.
- Fix:
calculate_all_texture_matricesand the GLCM, GLRLM, NGTDM and NGLDM features no longer crash (segmentation fault) on a small volume when the import warm-up is off and the numba cache already holds the kernel. - Oriented bounding box: the OMBB densities (ZH1A, IQYR) come from a search for the smallest box: the smallest of the boxes with a face in the plane of a convex hull facet, and of the axis-aligned box. They came from the box along the PCA axes, which can be bigger than the axis-aligned box (1.9 times on the IBSI 1 digital phantom).
- IVH area: the area under the IVH curve (9CMM) follows the IBSI text: the trapezoid of the volume fraction over the intensity fraction (0 to 1 over the range) at every discretised intensity, the absent ones too. The value now lies between 0 and 1 (0.320 on the digital phantom, as MIRP and MEDimage give).
- Documentation: the
coronarytemplate finds the padding value of each image, because the software that exports coronary CT angiography data does not always pad with -3024. The IBSI compliance of the features with reference values is the same. See the Changelog.
Installation
Pictologics needs Python 3.12, 3.13 or 3.14.
pip install pictologics
From the source code:
git clone https://github.com/martonkolossvary/pictologics.git
cd pictologics
pip install .
Quick Start
from pictologics import RadiomicsPipeline, format_results, save_results
# 1. A pipeline with the six standard configurations
pipeline = RadiomicsPipeline()
# 2. Run the configurations on an image and its mask
results = pipeline.run(
image="path/to/ct.nii.gz",
mask="path/to/mask.nii.gz",
subject_id="Subject_001",
config_names=["all_standard"], # the FBS configurations start at -1000 HU, for CT
)
# 3. One table row, with your own columns first
row = format_results(results, fmt="wide", meta={"subject_id": "Subject_001", "group": "control"})
# 4. Save the row to a CSV file
save_results([row], "results.csv")
For MR or PET images, use the FBN configurations (config_names=["standard_fbn_32"]) or your own. See the Quick Start and the Cookbook.
Performance Benchmarks
| Task | Size | Time (median) |
|---|---|---|
| run(): one standard configuration (standard_fbn_32) | CT of 512 × 512 × 200 | 55.6 ms |
| run(): the 6 standard configurations | CT of 512 × 512 × 200 | 78.1 ms |
| Texture (all 6 families) | 2,311,384 ROI voxels | 17.8 ms |
| Morphology | 2,311,384 ROI voxels | 3.4 ms |
| LoG (sigma 2 mm) | 256³ voxels | 45.9 ms |
| Gabor (axial, rotation invariant) | 256³ voxels | 55.6 ms |
The median of 5 runs on one computer, after a warm-up run. See the benchmark page for all results, plots and the computer.
Quality & Compliance
IBSI Compliance: IBSI 1 Features | IBSI 2 Phase 1 Filters | Phase 2 Features | Phase 3 Reproducibility
Code Health
- Test Coverage: 100.00%
- Mypy Errors: 0
- Ruff Issues: 0
See Quality Report for full details.
Citation
If you use Pictologics in your research, please cite it (GitHub shows the same citation from CITATION.cff):
Kolossváry M. Pictologics: IBSI-compliant radiomic feature extraction (version 1.0.1). 2026. https://github.com/martonkolossvary/pictologics
License
Apache-2.0
Metadata
Release files for pictologics 1.0.1
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 |
|---|---|---|---|---|
| pictologics-1.0.1.tar.gz | 377.0 kB | With provenance | Details for pictologics-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pictologics-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pictologics-1.0.1-py3-none-any.whl |
Total release size: 780.0 kB
Release files / pictologics-1.0.1.tar.gz
| Download URL | pictologics-1.0.1.tar.gz |
|---|---|
| Size | 377.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50cd167276b3778187aa64781a5b13d253acc8b24f6f235436bb92642ee2e7b3
|
|
BLAKE2b-256 checksum How to use checksums |
cbd42ea228eab46ca40789d053596f0a681a4864bd6f2f2180e49a29a1ea1ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / pictologics-1.0.1-py3-none-any.whl
| Download URL | pictologics-1.0.1-py3-none-any.whl |
|---|---|
| Size | 403.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd26f8d0843ef118293461a760a95a288c13450f4bbc079eb023aae2bb6c5e89
|
|
BLAKE2b-256 checksum How to use checksums |
c32b625e3d28f1579ad9e531fe3abe8e6f60ec9883723f56c2b1880d2d1fdf73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for pictologics 1.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pictologics-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA 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.