From e76fbf0b4b00121f1f4d7e10f6d1026172f91013 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Sun, 19 Jan 2020 19:50:57 -0500 Subject: [PATCH] DOC: Use compare widget in notebooks --- examples/0_HelloRegistrationWorld.ipynb | 125 ++++++------------------ examples/1_NumPyArray.ipynb | 69 +++++-------- examples/2_RegistrationParameters.ipynb | 60 +++--------- 3 files changed, 68 insertions(+), 186 deletions(-) diff --git a/examples/0_HelloRegistrationWorld.ipynb b/examples/0_HelloRegistrationWorld.ipynb index 67f0ac47..f8ed5d3b 100644 --- a/examples/0_HelloRegistrationWorld.ipynb +++ b/examples/0_HelloRegistrationWorld.ipynb @@ -9,12 +9,12 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import itk\n", - "from itkwidgets import view, checkerboard" + "from itkwidgets import view, compare, checkerboard" ] }, { @@ -30,72 +30,33 @@ "source": [ "In image registration, we typically identify the two images as the fixed and moving image. Our goal is to find the spatial transformation that makes the moving image align with the fixed image.\n", "\n", - "First, let's load our **fixed image**." - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [], - "source": [ - "fixed = itk.imread('data/CT_2D_head_fixed.mha', itk.F)" + "First, let's load our **fixed image** and the image we will align to our fixed image, the **moving image**." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "e4158972d1a04e098425a4f40d0e7c4b", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "Viewer(geometries=[], gradient_opacity=0.22, point_sets=[], rendered_image=