<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.xsl.php?feed=https://www.nitrc.org/export/rss20_forum.php?forum_id=9635" ?>
<?xml-stylesheet type="text/css" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC mri_reface Forum: help</title>
  <link>http://www.nitrc.org/forum/forum.php?forum_id=9635</link>
  <description>Get Public Help</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Thu, 18 Jun 2026 10:56:38 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>RE: Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Kazim,&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I'm sorry, I have limited ability to help you here. I've never tried to do this in Windows or ever used WSL. run_mri_reface_docker.sh is bash code, so you can view and/or modify the source if some changes are needed for your WSL environment.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;In this line,&amp;amp;nbsp;&amp;lt;br&amp;gt;File not found: C:/Users/kjafri/AppData/Local/Temp/tmp.hiSWIStylc/inputs/input&amp;lt;br&amp;gt;we are seeing a windows-style path: (&amp;quot;C:/&amp;quot;) rather than a Linux-style path (&amp;quot;/c/&amp;quot;). The error is coming from inside the Docker, so we shouldn't be seeing a path like that. My best guess is that mktemp -d (line 56 of run_mri_reface_docker.sh) is not behaving appropriately for the WSL/MINGW/Linux-emulating environment. This probably means that you have an environment value $TMPDIR that contains something like &amp;quot;C:/&amp;quot; when inside WSL you want something like &amp;quot;/c/&amp;quot; (or nothing at all, and let it be the default). You appear to be using some sort of AI-based translation layer (&amp;quot;Gordon&amp;quot;), and it may be the culpret of making changes to your environment (TMPDIR) that aren't appropriate here.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;Chris&amp;lt;/p&amp;gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Thu, 04 Jun 2026 23:52:56 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;I gave up on the manual compiling setup as I kept facing issues regarding implementation (not being able to find entities, etc.). So, I tried setting up the docker environment on Windows by leveraging WSL. There was no problem with setting up the image, but when I attempt to run the .sh, I get the following errors.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;padding-left: 80px;&amp;quot;&amp;gt;PHILADELPHIA+kjafri@RST-LTKJAFRI MINGW64 ~/Downloads/mri_reface_docker&amp;lt;br&amp;gt;$ bash run_mri_reface_docker.sh /c/Users/kjafri/Downloads/mri_reface_docker/input /c/Users/kjafri/Downloads/mri_reface_docker/output&amp;lt;br&amp;gt;Error using ADIR_ReFace&amp;lt;br&amp;gt;File not found: C:/Users/kjafri/AppData/Local/Temp/tmp.hiSWIStylc/inputs/input&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;padding-left: 80px;&amp;quot;&amp;gt;What's next:&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; Debug this container error with Gordon &amp;amp;rarr; docker ai &amp;quot;help me fix this container error&amp;quot;&amp;lt;br&amp;gt;cp: cannot stat '/tmp/tmp.hiSWIStylc/outputs/*': No such file or directory&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I'm wondering if you can provide some insights as to where I may be going wrong.&amp;lt;/p&amp;gt;</description>
   <author>Kazim Jafri</author>
   <pubDate>Thu, 04 Jun 2026 17:57:31 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;It's not something I remember encountering in the one time (so far) that I built this on Apple. When I Google your error, it suggests that disabling SSE would probably remove the Intel-specific flag. The niftyreg functionality mri_reface is using doesn't require any of the optional features, so for any niftyreg build problems I would disable whatever you can via cmake (here, SSE, but if errors with libjpeg, disable jpeg, etc.) and try again. The &amp;quot;ccmake&amp;quot; GUI interface to cmake would help you see what options are available.&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Chris&amp;lt;/p&amp;gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Wed, 03 Jun 2026 16:37:31 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&lt;p&gt;Hi Chris,&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I running across some errors and I was hoping you could help.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I cloned both repos (ANTS and Niftyreg) into our home directory, created the build folders, but ran into an error for niftyreg:&lt;/p&gt;&lt;br /&gt;
&lt;p style=&quot;padding-left: 80px;&quot;&gt;&amp;nbsp;corelabadmin@Corelab-Mac-Studio01-PRD build % make&lt;br&gt;[ &amp;nbsp;1%] Building CXX object reg-lib/CMakeFiles/_reg_maths.dir/cpu/Maths.cpp.o&lt;br&gt;clang++: error: unsupported option '-msse3' for target 'arm64-apple-darwin25.5.0'&lt;br&gt;make[2]: *** [reg-lib/CMakeFiles/_reg_maths.dir/cpu/Maths.cpp.o] Error 1&lt;br&gt;make[1]: *** [reg-lib/CMakeFiles/_reg_maths.dir/all] Error 2&lt;br&gt;make: *** [all] Error 2&lt;br&gt;corelabadmin@Corelab-Mac-Studio01-PRD build % cd ..&lt;br&gt;corelabadmin@Corelab-Mac-Studio01-PRD niftyreg % cd ..&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;I suspect that it is anticipating x86 architecture instead of the more recent ARM architecture on Mac computers.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Any help that can be provided would be appreciated.&lt;/p&gt;</description>
   <author>Kazim Jafri</author>
   <pubDate>Wed, 03 Jun 2026 15:41:41 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: PET refacing</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16020&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Paul,&amp;lt;br&amp;gt;At this time, FBB and FBP are doing the same thing behind the scenes. PIB and NAV use one template based on PIB, and the other F18 tracers use another template based on FBP. It's possible that some future version may need to differentiate them, but currently that pair are treated the same internally.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;br&amp;gt;Chris&amp;lt;/p&amp;gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Tue, 02 Jun 2026 16:50:05 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16020&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>PET refacing</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16020&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Hi&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Just wondering what the difference is between the &amp;quot;FBP&amp;quot; and &amp;quot;FBB&amp;quot; image types. We have both &amp;lt;span data-teams=&amp;quot;true&amp;quot;&amp;gt;Florbetapir and Florbetaben scans. &amp;lt;/span&amp;gt;Both options for `mri_reface ... -imType` are logged as &amp;quot;&amp;lt;span class=&amp;quot;s1&amp;quot;&amp;gt;Target image type: Amyloid PET (F18)&amp;quot;. Do they use the same atlas behind the scenes?&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;span class=&amp;quot;s1&amp;quot;&amp;gt;Thanks&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;span class=&amp;quot;s1&amp;quot;&amp;gt;Paul&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;</description>
   <author>Paul Wright</author>
   <pubDate>Tue, 02 Jun 2026 14:50:00 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16020&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;Thanks. Really appreciate the information. We'll try to implement on the Mac first. If we don't have success, then we'll try with Docker.&amp;lt;/p&amp;gt;</description>
   <author>Jesse Mahan</author>
   <pubDate>Fri, 29 May 2026 13:30:23 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Jesse,&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Firstly, if you're not pretty comfortable in Linux to compile and set up all the dependencies, I would recommend skipping the Mac step and running on Linux using the Docker image. Docker relieves you of having to do any of that, but the Docker image is x86/x64 and won't run on Apple Silicon (ARM).&amp;amp;nbsp; If your final production environment is Linux, your easiest route would be Docker on Linux.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For your more specific questions:&amp;lt;br&amp;gt;1) yes, those are the links to the ANTs and Niftyreg projects.&amp;amp;nbsp;&amp;lt;br&amp;gt;2) On NITRC, our &amp;quot;default&amp;quot; version is Linux native (without Docker). The &amp;quot;Docker&amp;quot; version should run on any x86/x64 but Linux is the only thing we've tested. I'm not aware of anyone running it on Windows. The mac version (native) will run on Mac.&amp;lt;br&amp;gt;3) Yes, both of those projects use CMake to build&amp;lt;br&amp;gt;4) In an ideal case cmake builds look something like--&amp;lt;br&amp;gt;cd folder/with/source/code # folder will contain CMakeLists.txt&amp;lt;br&amp;gt;mkdir build&amp;lt;br&amp;gt;cd build&amp;lt;br&amp;gt;cmake ..&amp;lt;br&amp;gt;make&amp;lt;br&amp;gt;sudo make install&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;and repeat for ANTs.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;5) The distribution shouldn't really make a difference. Ubuntu should be fine and if it wasn't working on Ubuntu I'm sure someone would have reported it by now, but we are running Rocky Linux 8 (descends from Centos, which descends from Redhat).&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;6) Use the included run_mri_reface.sh script&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Good luck!&amp;lt;br&amp;gt;Chris Schwarz&amp;lt;/p&amp;gt;</description>
   <author>Christopher Schwarz</author>
   <pubDate>Wed, 27 May 2026 15:29:12 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>Basic setup and usage for native Mac and Linux</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</link>
   <description>&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;Hello, I am a total novice when it comes to using these types of programs. I have been in Windows IT support for two decades, so compiling things is not something I've ever needed to do; plus, very little Terminal use. I've been tasked with determining if MRI Reface can work for our use-cases, so I&amp;amp;rsquo;m looking for help/direction on how to get these applications to function. I&amp;amp;rsquo;m not a programmer or developer, so I&amp;amp;rsquo;m really at a loss.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;I'm attempting to first do a POC with the native 3.5 Mac version. Then, later, potentially having this run on a Linux EC2 using the native Linux 3.5 release.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;We are using a Mac Studio M1 Max on Tahoe 26.5. I&amp;amp;rsquo;ve installed MATLAB 2022a. Easy. Next steps: the Niftyreg and ANTS components.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;#1 - Are these the best links to use for these components for this Mac?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;Nifty reg: &amp;lt;a href=&amp;quot;https://github.com/KCL-BMEIS/niftyreg&amp;quot;&amp;gt;https://github.com/KCL-BMEIS/niftyreg&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;ANTS: &amp;lt;a href=&amp;quot;https://github.com/antsx/ants&amp;quot;&amp;gt;https://github.com/antsx/ants&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;#2 - Should different links be used if trying to set up the native Linux install? If so, which?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;#3 &amp;amp;ndash; Am I right that I should be using CMake to compile both Nifty reg and ANTS?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;#4 - I see the CMake text files in the Github data. Is this the best resource for which cmds to run? Are people using these successfully to compile and run the applications?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;#5 - Is Ubuntu still the recommended Linux OS? Is there a release version that should be used or is known-good?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;#6 &amp;amp;ndash; Once the Niftyreg and ANTS components are believed to be successfully &amp;amp;lsquo;installed&amp;amp;rsquo;, how do you run MRI Reface?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;Thanks for any help you can provide or resources you can point me to.&amp;lt;/p&amp;gt;</description>
   <author>Jesse Mahan</author>
   <pubDate>Tue, 26 May 2026 20:28:53 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16014&amp;forum_id=9635</guid>
  </item>
  <item>
   <title>RE: Resource recommendations</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</link>
   <description>&amp;lt;p&amp;gt;Useful info, thank you. When I have more info after running an array of jobs I'll update the thread.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;I agree there's probably an overhead to running in a singularity container.&amp;lt;/p&amp;gt;</description>
   <author>Paul Wright</author>
   <pubDate>Wed, 29 Apr 2026 15:19:45 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=16000&amp;forum_id=9635</guid>
  </item>
 </channel>
</rss>
