diff --git "a/temp.ipynb" "b/temp.ipynb" --- "a/temp.ipynb" +++ "b/temp.ipynb" @@ -79,7 +79,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 2, "id": "cad4a637", "metadata": {}, "outputs": [], @@ -160,7 +160,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "id": "c91a5802", "metadata": {}, "outputs": [ @@ -168,9 +168,9 @@ "name": "stderr", "output_type": "stream", "text": [ - " 0%| | 0/1 [00:03" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "\n", + "# image: HxW (grayscale) or HxWx3 (RGB)\n", + "# mask: HxW (binary or label mask)\n", + "\n", + "plt.figure(figsize=(6, 6))\n", + "\n", + "plt.imshow(adc[:,:,15], cmap=\"gray\")\n", + "plt.imshow(seg[:,:,15], cmap=\"Reds\", alpha=0.4) # overlay mask\n", + "plt.axis(\"off\")\n", + "\n", + "plt.show()" ] }, {