-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
When reconstructing a multi-channel input from a MicaSense RedEdge-P camera, I get the following error creating the texture:
Image must be RGB or RGBA
Eventually, it is possible to skip this step or remove the additional channels for the creation of the texture.
Otherwise this upstream issue discusses if the fix should be placed in this repo or in the texrecon tool:
simonfuhrmann/mve#584
This is the log of the odm process:
[INFO] running "/code/SuperBuild/install/bin/OpenMVS/ReconstructMesh" -i "/datasets/images_proc/odm_meshing/odm_25dmesh.dirty.ply" -o "/datasets/images_proc/odm_meshing/odm_25dmesh.ply" --archive-type 3 --remove-spikes 0 --remove-spurious 0 --smooth 0 --target-face-num 400000 -v 0
15:36:43 [App ] OpenMVS x64 v2.2.0
15:36:43 [App ] Build date: Jan 13 2026, 15:27:48
15:36:43 [App ] CPU: AMD Ryzen AI 9 365 w/ Radeon 880M (20 cores)
15:36:43 [App ] RAM: 61.93GB Physical Memory 63.12GB Virtual Memory
15:36:43 [App ] OS: Linux 6.17.13+deb13-amd64 (x86_64)
15:36:43 [App ] Disk:
15:36:43 [App ] SSE & AVX compatible CPU & OS detected
15:36:43 [App ] Command line: ReconstructMesh -i /datasets/images_proc/odm_meshing/odm_25dmesh.dirty.ply -o /datasets/images_proc/odm_meshing/odm_25dmesh.ply --archive-type 3 --remove-spikes 0 --remove-spurious 0 --smooth 0 --target-face-num 400000 -v 0
15:36:44 [App ] MEMORYINFO: {
15:36:44 [App ] VmPeak: 200708 kB
15:36:44 [App ] VmSize: 117800 kB
15:36:44 [App ] } ENDINFO
[INFO] Finished odm_meshing stage
[INFO] Running mvs_texturing stage
[INFO] Writing MVS Textured file in: /datasets/images_proc/odm_texturing/odm_textured_model_geo.obj
[INFO] running "/code/SuperBuild/install/bin/texrecon" "/datasets/images_proc/opensfm/undistorted/reconstruction.nvm" "/datasets/images_proc/odm_meshing/odm_mesh.ply" "/datasets/images_proc/odm_texturing/odm_textured_model_geo" -d gmi -o gauss_clamping -t none --no_intermediate_results --num_threads=20 --max_texture_size=8192
/code/SuperBuild/install/bin/texrecon (built on Jan 13 2026, 15:22:35)
Load and prepare mesh:
Reading PLY: 195369 verts... 390760 faces... done.
Generating texture views:
NVM: Loading file...
NVM: Number of views: 9
NVM: Number of features: 8485
Loading 100%... done. (Took 0.084s)
Building adjacency graph:
Adding edges 100%... done. (Took 0.379s)
586136 total edges.
View selection:
Building BVH from 390760 faces... done. (Took: 148 ms)
terminate called after throwing an instance of 'std::invalid_argument'
what(): Image must be RGB or RGBA
Aborted
===== Dumping Info for Geeks (developers need this to fix bugs) =====
Child returned 134
Traceback (most recent call last):
File "/code/stages/odm_app.py", line 82, in execute
self.first_stage.run()
File "/code/opendm/types.py", line 465, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 465, in run
self.next_stage.run(outputs)
File "/code/opendm/types.py", line 465, in run
self.next_stage.run(outputs)
[Previous line repeated 4 more times]
File "/code/opendm/types.py", line 444, in run
self.process(self.args, outputs)
File "/code/stages/mvstex.py", line 120, in process
system.run('"{bin}" "{nvm_file}" "{model}" "{out_dir}" '
File "/code/opendm/system.py", line 112, in run
raise SubprocessException("Child returned {}".format(retcode), retcode)
opendm.system.SubprocessException: Child returned 134
===== Done, human-readable information to follow... =====
Same issue as #1978 but closed by the bot
Metadata
Metadata
Assignees
Labels
No labels