Skip to content

Commit

Permalink
Added NMTv2.0
Browse files Browse the repository at this point in the history
Also fixed a typo
  • Loading branch information
pcklink committed May 1, 2020
1 parent 5a4184d commit ba4ceb2
Show file tree
Hide file tree
Showing 126 changed files with 10 additions and 47 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/metatemplate/MetaTemplate_in_NMTv1.3.png
Binary file added images/templates/NMTv2.0_acpc_asym_template.png
Binary file added images/templates/NMTv2.0_acpc_sym_template.png
Binary file added images/templates/NMTv2.0_stereo_asym_template.png
57 changes: 10 additions & 47 deletions notebooks/macaque_template_warps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"source": [
"**Authors:** Nikoloz Sirmpilatze (nsirmpilatze@dpz.eu) & Chris Klink (c.klink@nin.knaw.nl) \n",
"\n",
"**Last updated:** Feb 2020 \n",
"**Last updated:** April 30, 2020 \n",
"\n",
"**Requirements:** \n",
"* _python_ >= 3.7\n",
Expand Down Expand Up @@ -259,26 +259,6 @@
"contrasts = [-1, 0, 0, 0, 0, 0, 0, -1, -0.5, 0] # specify to improve display"
]
},
{
"cell_type": "code",
"execution_count": 68,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"
]
},
"execution_count": 68,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"[0]*len(temp_brains)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -845,30 +825,6 @@
"* Plot the result"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"avg = ants.AverageImages(\n",
" dimension=3,\n",
" output_average_image=\"MetaTemplate_in_NMTv1.3.nii.gz\",\n",
" normalize=True,\n",
" images=[NMTv13_brain,\n",
" \"NMTv1.2_in_NMTv1.3_composite.nii.gz\",\n",
" \"D99_in_NMTv1.3_composite.nii.gz\", \n",
" \"INIA_in_NMTv1.3_composite.nii.gz\", \n",
" \"MNI_in_NMTv1.3_composite.nii.gz\",\n",
" \"YRK_in_NMTv1.3_composite.nii.gz\"]);\n",
"avg.run();\n",
"\n",
"plot_anat(\"MetaTemplate_in_NMTv1.3.nii.gz\", display_mode='ortho', \n",
" title=\"MetaTemplate in NMTv1.3\", draw_cross=False, annotate=True, dim=con);\n",
"plt.savefig('MetaTemplate_in_NMTv1.3.png')\n",
"plt.draw()"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -928,7 +884,7 @@
"metadata": {},
"outputs": [],
"source": [
"wtp = BASE_path + \"warped_templates/final\"\n",
"wtp = BASE_path + \"warped_templates/final/\"\n",
"image_list = [NMTv13_brain]\n",
"for file in os.listdir(wtp):\n",
" if file.split('_')[2] == 'NMTv1.3':\n",
Expand Down Expand Up @@ -966,6 +922,13 @@
"os.makedirs(BASE_path + \"images/metatemplate\" , exist_ok=True)\n",
"[os.rename(os.getcwd() + '/' + f, BASE_path + \"images/metatemplate/\" + f) for f in glob.glob('MetaTemplate*.png')];"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -984,7 +947,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.8.1"
},
"toc-showcode": false,
"toc-showmarkdowntxt": false
Expand Down

0 comments on commit ba4ceb2

Please sign in to comment.