Converts Fujifilm MPO stereo photos to Vision Pro Spatial photos
Note: this works on MacOS only (the main limitation is due to Spatial Video Tools) being MacOS only)
This script is made to convert Fujifilm finepix W3 3D camera MPO files to Apple Vision Pro Spatial photos.
It uses:
- Masuji Suto's StereoAutoAlign utlity to
- extract the images from the MPO files
- align and color match the images (using the L image as ref)
- export them as SBS files
- and combines it with Mike Swanson's Spatial Video tool to
- convert the SBS images to Spatial photos with the correct camera parameters that match the Fujifilm W3 specifications.
- install all dependancies (described below)
- In terminal, call this script and the path to a folder of MPO files
for example
MPO_to_SpatialPhoto_converter.sh "/Users/azadbalabanian/Desktop/Photos/Day1/MPO"
The script assumes you have a folder of MPO files in a root directory. It will create converted 3d photos in this format and directory:
- root/
- MPO (this is where your input images should be)
- SBS
- Spatial
- EXIF tool
- StereoAutoAlign
- Spatial Video Toolkit
installation instructions bellow
-
Download
- https://exiftool.org/
- MacOS Package: ExifTool-13.21.pkg (5.2 MB)
- https://exiftool.org/
-
Installation
- Launch it, you'll likely have a security issue.
- Go to System Preferences > Privacy and Security > scroll down to "Security" > Exif tool was blocked > "Open Anyway"
- Verify
- launch terminal, type
exiftool -h
- see if the tool gets called and spits out help info
- Quit terminal cause it get stuck in wanting some input.
- launch terminal, type
- Launch it, you'll likely have a security issue.
Download from: https://stereo.jpn.org/stereoautoalign/index_mace.html
- Install
- you'll have issues with Mac security stuff so follow these steps.
- Launch Terminal
sudo xattr -r -d com.apple.quarantine [insert dir to the StereoAutoAlign unix file]
- enter your mac password
- verify that it works by using the sample SBS photo in the folder
- Drag StereoAutoAlign to the Terminal, then drag the sbs image, and press Enter to activate it.
- Change StereoAutoAlign location in the script
- in the
MPO_to_Spatial
file, change the directory of StereoAutoAlign to match wherever the file is in your computer. STEREOAUTOALIGN_BIN="/Users/azadbalabanian/Desktop/Spatial/utilities/stereoautoalign_030_mac/StereoAutoAlign"
- in the
Link: https://blog.mikeswanson.com/spatial/
- Install
- option 1: using homebrew (recommended)
brew install spatial
- this what I use and what this "MPO to Spatial script" is written around
- option 1: using homebrew (recommended)
- option 2: download zip
- https://www.mikeswanson.com/spatial/releases/spatial_0.6.2.zip (might be outdated)