{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook is intended to demonstrate how vessel segmentation methods of ITKTubeTK can be applied to binary data." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import itk\n", "from itk import TubeTK as ttk\n", "\n", "from itkwidgets import view\n", "\n", "import numpy as np" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "ImageType = itk.Image[itk.F, 3]\n", "\n", "im1 = itk.imread(\"../Data/Binary/DSA-Binary.mha\")\n", "resample = ttk.ResampleImage.New(Input=im1, MakeIsotropic=True)\n", "resample.Update()\n", "im1Iso = resample.GetOutput()" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "41627bd8c98442c1982f7bcd8dbdd062", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Viewer(geometries=[], gradient_opacity=0.22, point_sets=[], rendered_image=