@itk-wasm/morphological-contour-interpolation

Morphology-based approach for interslice interpolation of anatomical slices from volumetric images.

👨‍💻 Live API Demo ✨



morphologicalContourInterpolation Interpolates contours between slices.





noHeuristicAlignment - Heuristic alignment of regions for interpolation is faster than optimal alignment.

noUseDistanceTransform - Using distance transform instead of repeated dilations to calculate the median contour is slightly faster, but produces lower quality interpolations.

useCustomSlicePositions - Use custom slice positions (not slice auto-detection).

noUseExtrapolation - Perform extrapolation for branch extremities. Branch extremities are defined as regions having no overlap with any region in the next slice. Extrapolation helps generate smooth surface closings.

useBallStructuringElement - Use ball instead of default cross structuring element for repeated dilations.





Load sample inputs Run

bmp dcm gipl hdf5 jpg lsm mnc mnc.gz mgh mha mrc nii nii.gz png nrrd png pic tif isq fdf vtk Download