Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit d264e8c

Browse files
committed
Update elastix notebook
1 parent 8c5227d commit d264e8c

File tree

3 files changed

+45
-9
lines changed

3 files changed

+45
-9
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ target/
8383
stage1_train
8484
serial2p_subset
8585
DAPI.tif
86-
86+
coronal_section.tif

Diff for: coronal_section.tif

-7.28 MB
Binary file not shown.

Diff for: examples/itk-elastix.ipynb

+44-8
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
},
182182
{
183183
"cell_type": "code",
184-
"execution_count": null,
184+
"execution_count": 6,
185185
"id": "4485eddf-ea28-4d88-b48b-98c791665d92",
186186
"metadata": {},
187187
"outputs": [],
@@ -192,18 +192,29 @@
192192
},
193193
{
194194
"cell_type": "code",
195-
"execution_count": null,
195+
"execution_count": 7,
196196
"id": "3e35422d-9592-45b7-b7cc-2cd987453831",
197197
"metadata": {},
198-
"outputs": [],
198+
"outputs": [
199+
{
200+
"data": {
201+
"text/plain": [
202+
"<Image layer 'registered_image' at 0x7fcd036661d0>"
203+
]
204+
},
205+
"execution_count": 7,
206+
"metadata": {},
207+
"output_type": "execute_result"
208+
}
209+
],
199210
"source": [
200211
"# Visualise the result\n",
201212
"viewer.add_image(registered_image)"
202213
]
203214
},
204215
{
205216
"cell_type": "code",
206-
"execution_count": null,
217+
"execution_count": 8,
207218
"id": "90a58717-2138-464d-ae59-5a03ac8322bf",
208219
"metadata": {},
209220
"outputs": [],
@@ -234,10 +245,21 @@
234245
},
235246
{
236247
"cell_type": "code",
237-
"execution_count": null,
248+
"execution_count": 9,
238249
"id": "62055f12-bd92-4ab2-9466-da9e5d533b90",
239250
"metadata": {},
240-
"outputs": [],
251+
"outputs": [
252+
{
253+
"data": {
254+
"text/plain": [
255+
"<Labels layer 'warped_annotations' at 0x7fce025e67d0>"
256+
]
257+
},
258+
"execution_count": 9,
259+
"metadata": {},
260+
"output_type": "execute_result"
261+
}
262+
],
241263
"source": [
242264
"# Apply transformation to the annotations image\n",
243265
"warped_annotations = transform_additional_image(atlas.annotation[atlas_plane], result_transform_parameters, mask=True)\n",
@@ -246,10 +268,24 @@
246268
},
247269
{
248270
"cell_type": "code",
249-
"execution_count": null,
271+
"execution_count": 10,
250272
"id": "343c7871-5663-4d3c-927c-a41aceb9d7e5",
251273
"metadata": {},
252-
"outputs": [],
274+
"outputs": [
275+
{
276+
"name": "stdout",
277+
"output_type": "stream",
278+
"text": [
279+
"{'acronym': 'CP',\n",
280+
" 'id': 672,\n",
281+
" 'mesh': None,\n",
282+
" 'mesh_filename': PosixPath('/home/adam/.brainglobe/allen_mouse_25um_v1.2/meshes/672.obj'),\n",
283+
" 'name': 'Caudoputamen',\n",
284+
" 'rgb_triplet': [152, 214, 249],\n",
285+
" 'structure_id_path': [997, 8, 567, 623, 477, 485, 672]}\n"
286+
]
287+
}
288+
],
253289
"source": [
254290
"# Pick a value from atlas to inspect\n",
255291
"from pprint import pprint\n",

0 commit comments

Comments
 (0)