Skip to content

Commit

Permalink
Merge pull request #23 from ScaDS/final_touch_files_imvis
Browse files Browse the repository at this point in the history
reran notebooks, added example data, added slides
  • Loading branch information
haesleinhuepf authored May 10, 2024
2 parents 141d991 + d628df5 commit e92c486
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 81 deletions.
452 changes: 450 additions & 2 deletions day1.2_file_handling/01_list_files_in_a_folder.ipynb

Large diffs are not rendered by default.

94 changes: 60 additions & 34 deletions day1.2_file_handling/02_interactive_image_visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,20 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "774acd58-1c4a-4673-bd81-50d9ff53f55b",
"id": "c0b34884-986b-4227-a0ee-6a93aaa01edf",
"metadata": {},
"outputs": [],
"source": [
"import stackview"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "d4e2ebc5-ee07-4b8a-905d-54c2772180ea",
"metadata": {},
"outputs": [],
"source": [
"import stackview\n",
"from skimage.io import imread, imshow"
]
},
Expand All @@ -43,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "a07910c4-5a4c-4a02-9367-4906cedd53ca",
"metadata": {
"tags": []
Expand All @@ -55,7 +64,7 @@
"(86, 396, 393)"
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -77,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"id": "a79697dd-0567-4759-8949-778f49b3776a",
"metadata": {
"tags": []
Expand All @@ -86,10 +95,10 @@
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x265289cc290>"
"<matplotlib.image.AxesImage at 0x1ae8b7f02b0>"
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -120,7 +129,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"id": "21067204",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -197,7 +206,7 @@
" [ 1, 0, 1, ..., 2, 2, 2]]], dtype=uint8)"
]
},
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -217,7 +226,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"id": "4cf3f9d3",
"metadata": {
"tags": []
Expand All @@ -226,15 +235,15 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f7585d754f7f4d20869037cba5747f14",
"model_id": "9995f54fd14c4a9c9a00c9e31813b887",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=396, width=393),)),)), IntSlider(value=43, des…"
]
},
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -254,28 +263,28 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"id": "64731189",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ff3ae0ad567a473bb430ab533a30cc05",
"model_id": "20f60fead3e64b64b61aa6015ab667fb",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=396, width=393),)),)), IntSlider(value=43, des…"
]
},
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"stackview.picker(image, continuous_update=True)"
"stackview.picker(image)"
]
},
{
Expand All @@ -289,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"id": "d4ee961e",
"metadata": {},
"outputs": [],
Expand All @@ -299,22 +308,22 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"id": "ab1dc868",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1790fe7638d2456e951317a5839db239",
"model_id": "d67b872cb4ef44479598c2d24d1425f6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=396, width=393),)),)), IntSlider(value=43, des…"
]
},
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -333,22 +342,22 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"id": "91a89968-9f2c-48bb-abfa-d6e123dcf51d",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c46768b30a0f46fc84d38af571895a09",
"model_id": "a4bb06a0fc1d454faa46b168392c43f2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=396, width=393),)),)), IntSlider(value=43, des…"
]
},
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -376,7 +385,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"id": "d44f586a-7a0d-44e9-aa15-60d3238a0c8d",
"metadata": {},
"outputs": [
Expand All @@ -386,7 +395,7 @@
"(512, 672, 3)"
]
},
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -406,7 +415,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"id": "f15d262b-c7a8-4ef0-bc90-076ede7ec523",
"metadata": {
"tags": []
Expand Down Expand Up @@ -443,7 +452,7 @@
" [242, 247, 253, ..., 214, 217, 214]], dtype=uint16)"
]
},
"execution_count": 11,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -471,22 +480,22 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"id": "238118b8-7f3e-4580-87cb-cad4728f87c6",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "008b365821ea4f0096729f76d6a96477",
"model_id": "ebc5ab0fdd4e47909fa48d2d0828c97a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=512, width=672),)),)), HBox(children=(Button(d…"
]
},
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -511,7 +520,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 14,
"id": "2ba49efd-49a6-41bc-b14d-c0c3129edd83",
"metadata": {
"tags": []
Expand All @@ -520,15 +529,15 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "887ea0f364e148c0a4450105af5aac73",
"model_id": "efb253d1800b4fbea1dfc425788006f6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=512, width=672),)),)), HBox(children=(ToggleBu…"
]
},
"execution_count": 13,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -568,6 +577,23 @@
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "561fcd60-5391-4505-b9eb-4044eca04a0d",
"metadata": {},
"source": [
"## Optional Exercise:\n",
"Open an own multi-channel file and visualize its content."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "66ecbedf-9d6c-43a2-9eba-375fb740416b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -586,7 +612,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.9.19"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
Loading

0 comments on commit e92c486

Please sign in to comment.