Skip to content
Conduit

mcp server

pardesline

3D vision and medical imaging in one Python package: 73 algorithms, 43 datasets in one line, Open3D / SimpleITK / PyVista, MCP server for AI agents

pardesline/pardeslinecommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

Before you start

  • uv (`curl -LsSf https://astral.sh/uv/install.sh | sh`)
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "pardesline": {
      "command": "uvx",
      "args": [
        "pardesline"
      ]
    }
  }
}

same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12

Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs

README

synced Oct 25, 2026

30-second demo: dataset in, registration out

pip install "pardesline[all]"
import pardesline as pl
import pyvista as pv

s = pl.load("rire_brain")[0]  # CT + MR T1 of one head (19 MB); the licence line is printed, never guessed
moved = s.ct.align(s.mr_t1)  # rigid registration: SimpleITK, Mattes mutual information, catalog defaults
print(moved.transform["sub_transforms"][0]["rotation_deg"])  # [0.34, -0.35, -4.38] degrees

ct, mr = s.ct.to_pyvista(), moved.to_pyvista()  # the libraries you already use, one call away
p = pv.Plotter(shape=(1, 2))
p.subplot(0, 0)
p.add_mesh(ct.slice("z"), cmap="gray")
p.add_text("CT (fixed)")
p.subplot(0, 1)
p.add_mesh(ct.slice("z"), cmap="gray")
p.add_mesh(mr.slice("z"), cmap="magma", opacity=0.55)
p.add_text("MR T1 registered onto the CT")
p.show()

Measured cold on a laptop: 7.6 s download, 8.8 s registration, 21.5 s total. The script is examples/register_ct_mr_rire/run.py.

Why this exists

  • Datasets are scattered and incompatible. The Decathlon is a tar on S3, TCIA is a REST API that returns zips of DICOM, KiTS is on Hugging Face, KITTI is a zip of headerless binaries. pardesline describes each one in a manifest (files, roles, labels, frame, units, licence, citation) and fetches lazily, by HTTP Range inside archives when it can, so one sample costs one sample.
  • Nothing carries its meaning. A .bin is numbers until someone says (N, 4) float32, x y z reflectance, metres. A NIfTI label map is integers until someone says 1 = anterior. Manifests carry that; your own folders get it through pl.scan, which asks what it cannot know instead of guessing.
  • Open3D, PyVista and SimpleITK do not talk to each other. One typed object (PointCloud, Mesh, Volume, LabelMap) converts between them, keeps frame, units, labels, licence and provenance, and exposes to_open3d(), to_pyvista(), to_sitk() when you want the library itself.
  • Textbook defaults break on real scans. The ICP that converges on the tutorial fragments ends 32 degrees off on a noisy partial scan while reporting a 0.98 fitness. Every algorithm here runs behind one call with defaults tied to the data (voxel size from the bounding box, correspondence distances as multiples of it) and the sidecar records what was used. See Defaults that work on real data.
  • Models do not plug into datasets. The expert skills and reference scripts (PointNet, DINOv3 features, JEPA, VAE, nnU-Net preparation) read any pardesline dataset. One-line access to pretrained models through the same manifest pattern is the next step on the roadmap.

Install

pip install pardesline                 # core: catalog, object model, datasets, CLI (no native libraries)
pip install "pardesline[local]"        # + Open3D, PyVista, SciPy, scikit-image: point clouds, meshes, LiDAR, SDF
pip install "pardesline[medical]"      # + SimpleITK: volumes, DICOM series, registration, segmentation
pip install "pardesline[hf]"           # + huggingface_hub: datasets on the Hub
pip install "pardesline[mcp]"          # + mcp: the local server for AI agents
pip install "pardesline[all]"          # everything above
LinuxmacOSWindows
Core (pardesline)3.10 – 3.133.10 – 3.133.10 – 3.13
[local] / [all]3.10 – 3.133.10 – 3.13 (arm64)3.10 – 3.13

[local] needs Open3D wheels: 0.20 covers Python 3.10 – 3.13, 0.19 covers 3.10 – 3.12. pardesline 0.2.0 on PyPI pins Open3D below 0.20, so on Python 3.13 use 3.12 or install from main until 0.3.0 ships. Conda users: conda create -n pl python=3.12 && pip install "pardesline[all]" (Open3D and SimpleITK come from PyPI). Troubleshooting: docs/running-modes.md.

📦 Datasets

One loader for every source. Files are fetched on access and verified; the licence and the citation travel with the data; ds.describe() says what each role is, in which frame and units, and what the labels mean.

ds = pl.load("totalsegmentator_ct")  # 1 228 CTs, 117 structures, 23 GB zip on Zenodo: indexed with 14 MB
ct = ds.take(1)[0].ct  # one 50 MB volume fetched by HTTP Range, nothing else
ds = pl.load(
    "hf://neheller/KiTS-Challenge-Imaging"
)  # any Hugging Face repo: a manifest is drafted and confirmed
ds = pl.load("tcia://Pancreas-CT")  # any public TCIA collection: DICOM series as folders
ds = pl.scan("/data/my_study")  # your folder: drafts a manifest, asks for units / labels / licence

Medical (35)

DatasetModality / typeSizeLicenceSourceOne-line loader
AMOS 22: abdominal multi-organ segmentation, 600 CT and MRI with 15 organ labelsCT / MRI / NIfTI (labels, volume)23.7 GBCC-BY-SA-4.0zenodo.orgpl.load("amos22")
C3VD colonoscopy scenes as Gaussian splats and point clouds (EndoGSLAM fits from PR-ENDO)endoscopy / Gaussian splats / points (points, splat)7.7 GBCC-BY-4.0zenodo.orgpl.load("c3vd_endoscopy_splats")
CHAOS: abdominal CT and MR (T1 in/out-phase, T2 SPIR) as DICOM series, 40 patientsCT / MRI / DICOM (volume)891 MBCC-BY-NC-SA-4.0zenodo.orgpl.load("chaos_abdomen")
AbdomenAtlas 1.0 Mini: abdominal CTs with nine organ masks (first 100 of 5 195 cases)CT / NIfTI (labels, volume)7.8 GBCC-BY-NC-SA-4.0 (gated)Hugging Face AbdomenAtlas/AbdomenAtlas1.0Minipl.load("hf_abdomenatlas_mini")
CVPR 2025 BiomedSegFM, 3-D validation set: 2 144 CT / MRI / PET / 3-D ultrasound / microscopy volumes as npzCT / MRI / PET (labels, volume)19.5 GBCC-BY-NC-SA-4.0Hugging Face junma/CVPR-BiomedSegFMpl.load("hf_biomedsegfm_3d_val")
CT-RATE: non-contrast chest CTs paired with radiology reports (first 20 validation cases)CT / NIfTI (volume)6.8 GBCC-BY-NC-SA-4.0 (gated)Hugging Face ibrahimhamamci/CT-RATEpl.load("hf_ct_rate_valid")
KiTS23: 489 kidney-tumour CTs with kidney, tumour and cyst labelsCT / NIfTI (labels, volume)87.9 GBCC-BY-NC-SA-4.0Hugging Face neheller/KiTS-Challenge-Imagingpl.load("hf_kits23")
NSCLC-Radiomics (TCIA) as NIfTI: 422 lung-cancer CTs with organ and tumour segmentationsCT / NIfTI (labels, volume)11.7 GBCC-BY-3.0Hugging Face farrell236/NSCLC-Radiomics-NIFTIpl.load("hf_nsclc_radiomics")
OpenMind: head-and-neck 3D MRI pooled from OpenNeuro, one study at a timeMRI / NIfTI (labels, volume)CC-BY-4.0Hugging Face MIC-DKFZ/OpenMindpl.load("hf_openmind")
IXI: ~600 healthy-subject brain MRIs (T1, T2, PD, MRA) from three London hospitalsMRI / NIfTI (volume)24.6 GBCC-BY-SA-3.0biomedic.doc.ic.ac.ukpl.load("ixi_brain_mri")
Liver tumour CT with three radiologists segmentationsCT (labels, volume)2 MBsee sourcehttpspl.load("liver_tumor_patient01")
LUNA16: 888 thoracic CTs (LIDC-IDRI subset) for lung nodule detectionCT / MetaImage (volume)64.8 GBCC-BY-4.0zenodo.orgpl.load("luna16")
MedShapeNet: 106 101 anatomical and surgical-instrument shapes as STL meshesmesh / STL (mesh)1953.1 GBCC-BY-4.0mml.ikim.nrwpl.load("medshapenet")
Medical Segmentation Decathlon, Task01 BrainTumourMRI / NIfTI (labels, volume)7.4 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task01_braintumour")
Medical Segmentation Decathlon, Task02 Heart: left-atrium segmentation on 30 cardiac MRIsMRI / NIfTI (labels, volume)456 MBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task02_heart")
Medical Segmentation Decathlon, Task03 LiverCT / NIfTI (labels, volume)28.2 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task03_liver")
Medical Segmentation Decathlon, Task04 HippocampusMRI / NIfTI (labels, volume)28 MBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task04_hippocampus")
Medical Segmentation Decathlon, Task05 ProstateMRI / NIfTI (labels, volume)240 MBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task05_prostate")
Medical Segmentation Decathlon, Task06 LungCT / NIfTI (labels, volume)8.9 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task06_lung")
Medical Segmentation Decathlon, Task07 PancreasCT / NIfTI (labels, volume)12.0 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task07_pancreas")
Medical Segmentation Decathlon, Task08 HepaticVesselCT / NIfTI (labels, volume)9.1 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task08_hepaticvessel")
Medical Segmentation Decathlon, Task09 SpleenCT / NIfTI (labels, volume)1.6 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task09_spleen")
Medical Segmentation Decathlon, Task10 ColonCT / NIfTI (labels, volume)6.1 GBCC-BY-SA-4.0msd-for-monai.s3-us-west-2.amazonaws.compl.load("msd_task10_colon")
OpenNeuro ds000228: T1-weighted MRI of 155 children and adults (Richardson et al.)MRI / NIfTI (volume)2.4 GBPDDL-1.0S3 openneuro.orgpl.load("openneuro_ds000228")
POPI-model: 4D-CT of one thorax, six breathing phasesCT / 4D (labels, volume)500 MBsee sourcecreatis.insa-lyon.frpl.load("popi_lung_4dct")
RIRE training_001: CT and MR-T1 of one brainCT / MRI (volume)19 MBsee sourcerire.insight-journal.orgpl.load("rire_brain")
SPIDER: lumbar spine MRI (T1, T2, T2 SPACE) of 218 patients with vertebra, disc and canal masksMRI / MetaImage (labels, volume)3.7 GBCC-BY-4.0zenodo.orgpl.load("spider_lumbar_mri")
TCIA LIDC-IDRI: 1 018 thoracic CTs for lung nodule analysis (DICOM)DICOM / CT (volume)122.1 GBCC-BY-3.0TCIA LIDC-IDRIpl.load("tcia_lidc_idri")
TCIA NSCLC-Radiomics: 422 lung-cancer CTs with RTSTRUCT and SEG contours (DICOM)DICOM / CT (volume)32.2 GBCC-BY-3.0TCIA NSCLC-Radiomicspl.load("tcia_nsclc_radiomics_dicom")
TCIA Pancreas-CT: 82 abdominal contrast-enhanced CTs (NIH)DICOM / CT (volume)8.8 GBCC-BY-3.0TCIA Pancreas-CTpl.load("tcia_pancreas_ct")
TCIA Prostate-3T: 64 T2-weighted prostate MRIs (DICOM)DICOM / MRI (volume)200 MBCC-BY-3.0TCIA Prostate-3Tpl.load("tcia_prostate_3t")
TotalSegmentator CT dataset v2.0.1: 1 228 CT volumes with 117 anatomical structuresCT / NIfTI (labels, volume)23.0 GBCC-BY-4.0zenodo.orgpl.load("totalsegmentator_ct")
TotalSegmentator MRI dataset v1.0.0: 298 MRI volumes with 56 anatomical structuresMRI / NIfTI (labels, volume)2.3 GBCC-BY-NC-SA-2.0zenodo.orgpl.load("totalsegmentator_mri")
VerSe 2019: 160 spine CTs with vertebra-level label maps and centroidsCT / NIfTI (labels, volume)12.0 GBCC-BY-SA-4.0s3.bonescreen.depl.load("verse19_spine")
Visible Human Project: MRI of the headMRI (volume)2 MBsee sourcenlm.nih.govpl.load("visible_human_head_mri")

General 3D (8)

DatasetModality / typeSizeLicenceSourceOne-line loader
3D Arena: image-to-3D outputs of 29 generators on 100 shared input imagesmesh / Gaussian splats (image, mesh, splat)19.5 GBMITHugging Face 3d-arena/3d-arenapl.load("hf_3d_arena")
KITTI-360 street chunks as point clouds and Gaussian splats (GaussianWorld subset, 16 chunks)LiDAR / points / Gaussian splats (points)2.4 GBCC-BY-NC-SA-3.0Hugging Face GaussianWorld/kitti_360_subset_chunk_gs_preprocessedpl.load("hf_kitti360_gs_subset")
Objaverse 1.0, one shard of glTF meshes (5 000 objects)mesh (mesh)14.6 GBODC-By-1.0Hugging Face allenai/objaversepl.load("hf_objaverse_glb_shard")
UniOcc, CARLA 10 Hz mini split: LiDAR sweeps, camera views and semantic occupancy gridsLiDAR / points (image, labels, points)4.9 GBMITHugging Face tasl-lab/unioccpl.load("hf_uniocc_carla_mini")
KITTI raw, drive 2011_09_26_0001: 108 Velodyne sweeps with the four camera streamsLiDAR / points / stereo (image, points)459 MBCC-BY-NC-SA-3.0s3.eu-central-1.amazonaws.compl.load("kitti_raw_2011_09_26_drive_0001")
Stanford armadillo (Open3D demo mesh)mesh (mesh)7 MBsee sourceOpen3D datapl.load("open3d_armadillo")
Stanford bunny (Open3D demo mesh)mesh (mesh)3 MBsee sourceOpen3D datapl.load("open3d_bunny")
Open3D ICP demo: three indoor point-cloud fragmentspoints (points)6 MBsee sourceOpen3D datapl.load("open3d_icp_demo")

"Size" is the whole source; one sample costs its own size. "See source" means the data owner states terms outside a standard licence; ds.describe() prints them and the loader warns. Not bundled, and why: BraTS (Synapse data-use agreement), ModelNet, ShapeNet and ScanNet (registration-gated downloads); they are on the Datasets wanted list.

What standardization and the manifest give you: every role is typed (volume, labels, mesh, points, splat, image, transform), with frame (LPS, sensor, Y-up), units (mm, m), label names, raw-array layouts, licence, citation and provenance; label maps become exact surfaces in world coordinates, DICOM series become one volume, .npy/.bin become point clouds; ds.export(folder) writes standard PLY / MetaImage files with sidecars; ds.split(by="patient") never leaks a patient across splits. Add a dataset: CONTRIBUTING.md and docs/datasets.md.

🧠 Algorithms & models

Every row is a public capability of the package today. "Works on" names the object types from the table above. "Validated on" names the bundled data an example or test exercised; a blank cell means the method is covered by generated-data tests only.

Classical algorithms (73 methods in 19 catalog modules; pl.describe("module.method") prints every parameter with its range)

TaskHigh-level callUnderlying methodWorks onValidated onDocs
Rigid registration of point cloudstarget.align(moving)RANSAC on FPFH features, then point-to-plane ICP (Open3D)points, meshStanford bunny, 35° / 70 % overlap / 0.5 % noise: 0.14° residual (example)registration
Rigid / affine / B-spline / demons registration of volumesfixed.align(moving)SimpleITK ImageRegistrationMethod, Mattes MI, geometry initialisationvolumeRIRE CT/MR (example)simpleitk_registration
Non-rigid registration of point cloudspl.run("deformable_registration.cpd_deformable", ...)Coherent Point Drift (pycpd), Gaussian deformationpointsdeformable_registration
Surface reconstructionpoints.to_mesh()Poisson (density-trimmed), ball pivoting, alpha shape, convex hullpointsStanford bunny (example)point_cloud_reconstruction
Label map to meshmask.to_mesh(label=k)marching cubes in world coordinates (VTK)labels, volumeMSD hippocampus (example)object model
Threshold segmentation of volumesvolume.segment(lower, upper)Otsu / manual threshold, connected components, watershed (SimpleITK)volumeMSD spleen (example)simpleitk_segmentation
Point cloud cleaning and downsamplingpoints.clean(), points.downsample(voxel_size)statistical / radius outlier removal, voxel grid (Open3D)pointsStanford bunny (example)point_cloud_processing
Point cloud segmentationpoints.segment(eps, min_points)DBSCAN, RANSAC planepointspoint_cloud_segmentation
LiDAR scenessweep.run("lidar_scene_detection.object_clustering")ground plane RANSAC, DBSCAN objects, height colouring; LiDAR-camera fusionpointsKITTI drive (example)lidar_scene_detection
Mesh processingmesh.decimate(), mesh.smooth(), mesh.clean()quadric decimation, subdivision, Laplacian / Taubin smoothing, hole filling, normals (Open3D, PyVista)meshMSD hippocampus (example)mesh_processing, pyvista_mesh_processing
Mesh to points, voxels, SDFmesh.to_points(), voxel_to_mesh, sdf.compute_sdfPoisson-disk sampling, voxelisation, signed distance fields, occupancymesh, pointsStanford bunny (example)sdf
Volume processingvolume.run("pyvista_volume_processing.pv_slice_orthogonal")contour, slices, threshold, geometry extraction (PyVista)volumepyvista_volume_processing
Geometry analysispl.run("pyvista_analysis.pv_distance", ...)curvature, mesh-to-mesh distance, feature edges, scalar statisticsmesh, pointspyvista_analysis
Featurespoints.normals(), features_extraction.fpfh_featuresnormals, FPFH, curvaturepointsfeatures_extraction
Collisioncollision_detection.sdf_collision, penetration_depthSDF-based collision and penetration depthmeshcollision_detection
Stereostereo_3d_reconstruction.depth_colorization, depth_filterdepth maps to coloured cloudsimagestereo_3d_reconstruction

Deep-learning models (reference implementations and expert guides; no weights are shipped and there is no inference API yet. The direction: one-line pretrained model access through the same manifest and loader pattern as datasets, see the model registry tracking issue.)

TaskWhat ships todayModelWorks onValidated onDocs
Point cloud semantic segmentationmake_point_dataset.py + pointnet_seg.py (train / eval / infer)PointNet (Qi et al. 2017), PointNet++ notespoints from any label mapMSD hippocampus (example)pointnet-segmentation
Dense visual featuresdinov3_features.py, dinov3_faster_rcnn.pyDINOv3 / DINOv2 frozen backbones (transformers), Faster R-CNN headimageKITTI camera frame (example)dinov3-dense-features
Self-supervised pretraining on volumesjepa3d_pretrain.py3D JEPA (context encoder, predictor, EMA target)volumeMSD hippocampus (example)jepa-pretraining
Anomaly detection by reconstructionvae_anomaly.py (train / score, AUROC)convolutional VAEimageMSD hippocampus slices (example)vae-anomaly-detection
Supervised 3D medical segmentationprepare_nnunet_dataset.py (any dataset to nnU-Net v2 raw layout)nnU-Net and the model families that win MSD / AMOS / KiTSvolume + labelsMSD spleen (skill script)medical-segmentation-models
Gaussian splats from pointspoints_to_gaussians.py3DGS initialisation (means, log-scales, SH colour)points, meshStanford bunny (example)gaussian-splatting

Metrics & evaluation

TaskCallMetricsValidated onDocs
Segmentation and surface qualitymetrics3d.py (dice, iou, hd95, assd, surface_dice, volume_error)label-map metrics with spacing, in mmliver tumour, three radiologists (example)evaluation-metrics-3d
Registration and point setschamfer, f_score, pose_error; registration_eval.pyfitness, inlier RMSE, rotation / translation error, Chamfer, HD95Stanford bunny (example)point-cloud-registration

Defaults that work on real data

Same task, same two clouds: the Stanford bunny sampled to 20 000 points, and a second "scan" rotated by 35°, trimmed to 70 % overlap and jittered with 0.5 % noise of the bounding-box diagonal. Left, Open3D's registration_icp the way the tutorial calls it; right, target.align(moving).

reg = o3d.pipelines.registration.registration_icp(
    moving, target, 0.02, np.eye(4), TransformationEstimationPointToPoint()
)
aligned = target.align(moving)

What the one call sets, and why:

  • voxel_size = 0 → 1.3 % of the bounding-box diagonal: the feature scale follows the object, not a hard-coded 0.05 m that is wrong for a 15 cm bunny and for a 15 m facade alike.
  • distance_threshold_factor = 1.5 × voxel: RANSAC accepts a correspondence within one and a half cells; tighter rejects true matches on noisy scans, looser lets outliers in.
  • RANSAC on FPFH first, ICP second: ICP alone is a local optimiser and needs a start within a few degrees; a 35° offset is outside its basin, which is why the textbook call stops where it started.
  • icp_estimation_method = point_to_plane, icp_threshold_factor = 1.5 × voxel then refine_threshold_factor = 0.4 × voxel: coarse to fine, so the last iterations are not pulled by the 30 % of points that have no counterpart.
  • Every value is in the sidecar aligned.provenance[-1]["params"], and pl.describe("registration.ransac_icp_pipeline") prints the ranges to override them.

Numbers come from examples/icp_registration_bunny/run.py (result.json is committed next to the images). The written proof for every algorithm family, failure mode by failure mode, is the docs page Why our defaults work.

Validated on real cases

Use caseDomainData characteristicsAlgorithmWhat the defaults handleExample
Multimodal head registrationmedical imagingCT 0.65 mm × 4 mm slices vs MR 1.25 mm × 4 mm, different fields of viewsimpleitk_registration.rigidanisotropic spacing, intensity ranges that do not match (mutual information), initial offset of 40 mmregister_ct_mr_rire
Second scan of a partindustrial 3D scanning (public stand-in)partial overlap 70 %, 0.5 % noise, unknown poseregistration.ransac_icp_pipelinescale-free feature radius, global init, coarse-to-fine ICPicp_registration_bunny
Organ surface from a label mapmedical imaging1 mm isotropic MRI label map, two labelsLabelMap.to_mesh + Taubin smoothingexact label boundary in LPS mm, voxel staircase removed without shrinkinghippocampus_mask_to_mesh
Street scene from a LiDAR sweepautomotive LiDAR120 000 points, headerless (N, 4) binary, ground plane tiltedlidar_scene_detection.object_clusteringlayout from the manifest, RANSAC ground at 0.3 m, DBSCAN 0.5 mkitti_lidar_ground_and_objects

These run on public data that stands in for the industrial and medical scans the defaults were tuned on. Real cases from users are collected in examples/real_cases/: a template and a tracking issue, so that every claim on this page stays reproducible.

How it compares

pardesline is the dataset layer and the domain-level API on top of these libraries, not a replacement: it calls Open3D, PyVista, VTK and SimpleITK and hands you their objects. Each cell is checked against the project's own documentation; corrections are welcome as issues.

pardeslineOpen3DPyVistaSimpleITKtrimeshMONAITorchIOHF datasets
One-line access to public 3D / medical datasets43 manifests: MSD, TCIA, Zenodo, S3, Hugging Face, OpenNeuro, KITTIdemo meshes and fragments (open3d.data)example meshes and volumes (pyvista.examples)notebook data fetchernoDecathlonDataset, TciaDataset, MedNISTDatasetIXI, EPISURG and other medical setsany Hub repo, files untyped
Point clouds, meshes and volumes in one objectyes, plus splats and raw arrayspoints, meshes, voxel gridsmeshes, grids, volumesvolumesmeshesvolumes (tensors)volumesno
Standardization (frame, units, labels, spacing)manifest + sidecar, never guessednonoheader-awarenotransforms (Spacingd, Orientationd)transforms (Resample, ToCanonical)no
Licence and provenance attached to the datayesnonononononolicence field on the card
High-level, domain-vocabulary APIalign, segment, to_mesh, clean, scanalgorithm namesVTK filter namesITK filter namesgeometry namestransforms and bundlestransformsno
Defaults tied to the data scalevoxel from bounding box, thresholds as multiplesfixed numbers in callsfilter defaultsfilter defaultsn/aper bundleper transformn/a
Validated on real industrial / medical datapublic stand-ins + examples/real_cases/ mechanismtutorialsgallerynotebookstestsmodel zoo benchmarkspapersn/a
Classical 3D algorithms73 (through the libraries)yesyesyesyessome (via ITK/MONAI transforms)nono
One-line pretrained model accessroadmap (model registry)Open3D-ML weightsnononoModel Zoo bundlesnovia transformers
Local MCP server for AI agents14 tools, 20 skillsnonononononono
LicenceApache-2.0MITMITApache-2.0MITApache-2.0Apache-2.0Apache-2.0

Full page with the sources of each cell: docs comparison.

Examples gallery

Each folder is one self-contained script that downloads what it needs, runs, and writes its images next to itself. Titles follow <algorithm or model> on <dataset>. Run any of them with python examples/<folder>/run.py.

Also: Dice / HD95 between three radiologists on the liver tumour CT (0.82 to 0.85 Dice, 2.5 mm HD95: the inter-observer ceiling). The PyTorch examples need pip install torch (CPU is enough); DINOv3 weights need the licence accepted on the Hub, DINOv2 does not. Index and expected runtimes: examples/README.md.

🤖 MCP: give it to an AI agent

pip install "pardesline[mcp]"
claude mcp add pardesline -- pardesline mcp        # Claude Code; Claude Desktop, Cursor, Gemini CLI, Codex: {"command": "pardesline", "args": ["mcp"]}

The server exposes the datasets, the algorithms, the object model and the twenty skills as tools: list_datasets, describe_dataset, list_samples, load_sample, scan_dataset, confirm_dataset, export_dataset, list_methods, describe_method, run_method, describe_object, to_mesh, list_skills, get_skill. An agent can browse the catalog, fetch one sample, run a pipeline, read the expert guide for the method it is about to use, and export standard files. Questions the package will not guess (licence, units, array layout) come back as JSON for the agent to relay to the human. No account, nothing leaves the machine. Client configurations and the full contract: docs/mcp.md.

Roadmap

Vote with 👍 on the tracking issue; comment with your dataset, model or use case.

  • Model registry: one-line access to pretrained 3D and medical models (DINOv3, SAM-3D-style segmenters, JEPA encoders, PointNet, segmentation nets) through a model manifest (source, weights URI, licence, input type, task, memory needs, provenance) and pl.load_model(...) / pl.run(model, dataset), the same pattern as datasets. Tracking issue
  • Gaussian splats as a first-class kind (Splat: load, render, convert to points, metrics). Tracking issue
  • More datasets: BraTS (behind the user's Synapse credentials), VerSe 2020, the remaining public TCIA collections, ModelNet / ShapeNet / ScanNet once their gating can be honoured. Datasets wanted
  • Models wanted: model manifests contributors can write before the runner exists. Models wanted
  • Benchmarks: package defaults vs upstream defaults on the bundled data, numbers regenerated by CI. Tracking issue
  • A pardesline organisation on Hugging Face mirroring the permissive datasets with pip install pardesline as the documented loader. Tracking issue
  • Deformable registration and TotalSegmentator-class segmentation behind the same calls (align(mode="deformable"), segment(model=...)). Tracking issue

Community and contributing

Citation

If pardesline helps your research, cite it (CITATION.cff, also behind the "Cite this repository" button):

@software{tabet_pardesline_2026,
  author  = {Tabet, Jonathan},
  title   = {pardesline: 3D vision and medical imaging in one Python package},
  year    = {2026},
  version = {0.2.0},
  url     = {https://github.com/pardesline/pardesline},
  license = {Apache-2.0}
}

Cite the datasets you use as well: ds.citation returns the reference the data owner asks for.

Acknowledgements and licence

pardesline stands on Open3D, PyVista and VTK, SimpleITK, NumPy, SciPy, scikit-image, pycpd, httpx, pydantic, loguru, huggingface_hub and the MCP Python SDK. The datasets belong to their authors and institutions; every manifest carries the citation they ask for and the licence they state.

Apache License 2.0 for the package; see LICENSE and NOTICE. Datasets keep their own licences: ds.describe() prints them.

↑↓ navigate openesc close