mar.lor
(mar.lor)
November 7, 2023, 5:30pm
11
Please take into consideration that a lot of users that have been working with Gaussian Splatting, are switching to Metashape. They listened to their user requests, and provided an export solution in a short amount of time:
# Exports undistorted photos, internal/external camera orientations, tie points in a simple COLMAP format.
# Exported COLMAP project can be used as input for Gaussian Splatting. See how to use it - https://github.com/PolarNick239/gaussian-splatting-Windows#requirements
#
# Usecase: photo alignment was done in Metashape, export for Gaussian Splatting is required.
#
# Usage:
# 1. Align photos
# 1.1. Workflow -> Add Photos...
# 1.1.0. (optional, in case of large cropping)
# Tools -> Camera Calibration... -> select all calibration groups at the left panel -> Fixed parameters: -> Select... -> check "cx, cy"
# 1.2. Workflow -> Align Photos... (check "Adaptive camera model fitting" if you have several small calibration groups)
# 2. Run script
# 2.1. Tools -> Run script... then choose this script, without arguments
# 2.2. Scripts -> Export Colmap project (for Gaussian Splatting)
# 2.3. Click Export
# 2.4. Choose destination folder (for several chunks/frames additional subfolders will be added)
#
# Default parameters for GUI can be changed in ExportSceneParams.__init__
#
# Options:
This file has been truncated. show original
So far we have two problems, if we want to keep on working with Reality Capture:
(-) export camera positions (alignment) into Colmap compatible format
(-) export images as cropped without black bars:
To me it clearly is a RC bug that these black strips are present with Fit: Inner Region parameter during undistortion.
If you want to remove these black strips, you can do so with the below kapture utility - based on a kapture project. (with the kapture library, a bit verbose, but seem to do the job). Please follow the full workflow for first converting bundle to kapture, then kapture to colmap.
2 Likes