{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import ld2dap\n", "import triskele" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "load = ld2dap.LoadTIFF('../Data/phase1_rasters/Intensity_C1/UH17_GI1F051_TR.tif')\n", "trsh = ld2dap.Treshold(1e4)\n", "disp = ld2dap.ShowFig()\n", "rout = ld2dap.RawOutput()\n", "\n", "rout.input = trsh\n", "disp.input = trsh\n", "trsh.input = load\n", "\n", "disp.run()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "rinp = ld2dap.RawInput(rout.data.astype(np.uint16), rout.metadata)\n", "\n", "disp.input = rinp\n", "\n", "disp.run()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "aps = ld2dap.SelfDualAttributeProfiles(area=[100, 1e3], normalize_to_dtype=False)\n", "\n", "aps.input = rinp\n", "disp.input = aps\n", "\n", "disp.run()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Try this new Normalize node !" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "load = ld2dap.LoadTIFF('../Data/phase1_rasters/Intensity_C1/UH17_GI1F051_TR.tif')\n", "trsh = ld2dap.Treshold(1e4)\n", "norm = ld2dap.Normalize(dtype=np.uint8)\n", "aps = ld2dap.SelfDualAttributeProfiles(area=[100, 1e3], normalize_to_dtype=False)\n", "disp = ld2dap.ShowFig(stack_id='all')\n", "\n", "disp.input = aps\n", "aps.input = norm\n", "norm.input = trsh\n", "trsh.input = load\n", "\n", "disp.run()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3" } }, "nbformat": 4, "nbformat_minor": 2 }