Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 3D rendering of registration #264

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion notebooks/tutorials/optimizers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,30 @@
"execution_count": null,
"id": "eb74c29e-4187-4cab-a9a7-f328bdc7da45",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"749\"\n",
" height=\"500\"\n",
" src=\"registration.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" \n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from IPython.display import IFrame\n",
"\n",
Expand Down
37 changes: 7 additions & 30 deletions notebooks/tutorials/timing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"9.94 ms ± 1.57 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"10.1 ms ± 1.47 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -88,7 +88,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"38.3 ms ± 49.3 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"38.1 ms ± 47.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand All @@ -111,7 +111,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"85.4 ms ± 63.4 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
"84.6 ms ± 94 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
Expand All @@ -124,29 +124,6 @@
"del drr"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c9a1b0ef",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"151 ms ± 165 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)\n"
]
}
],
"source": [
"# |cuda\n",
"height = 400\n",
"\n",
"drr = DRR(subject, sdd=1020, height=height, delx=2.0).to(device)\n",
"%timeit drr(rotations, translations, parameterization=\"euler_angles\", convention=\"ZXY\")\n",
"del drr"
]
},
{
"cell_type": "markdown",
"id": "8c584ea5-2dc5-4606-ad9c-c04f4fca8ac3",
Expand Down Expand Up @@ -177,7 +154,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"217 ms ± 142 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"210 ms ± 379 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -201,7 +178,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"305 ms ± 823 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"295 ms ± 293 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -225,7 +202,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"466 ms ± 125 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"458 ms ± 612 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand All @@ -249,7 +226,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"924 ms ± 947 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
"906 ms ± 232 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n"
]
}
],
Expand Down
Loading