sanderslab / magellanmapper

MagellanMapper is a graphical interface for 3D bioimage annotation, atlas registration, and regional quantification
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

Workaround for Apple Silicon platforms #634

Closed yoda-vid closed 5 months ago

yoda-vid commented 5 months ago

Installation has been failing on Mac M-chips (Apple Silicon) because the Javabridge custom binaries haven't been built for that platforms. As a workaround, the readme now has a "Quick Install" section with an install command that skips Javabridge, installing only the GUI and ITK groups. This install also has the added benefit of not requiring the custom PyPi or Conda, though it doesn't install support for importing proprietary miscroscopy image formats.

Another issue encountered on Mac M-chips is that ITK installs but for some reason doesn't load properly. A workaround is either to install ITK first, or to only install ITK through ITK-Elastix. I've opted for the latter so that installation can still be done in one step.

Installing ITK-Elastix directly will also pull in a more recent version of ITK. For some reason, this version has an issue where the CastImageFilter may return an empty image. I've added a workaround that falls back to casting through the .astype interface.