TSDF Integrate truncates the depth lookup, biasing every sample half a pixel against its own projection
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- cpp
- Ambito
- computer-vision
Direzione di ricerca
Start by reading TransformIndexer::Project in cpp/open3d/t/geometry/kernel/GeometryIndexer.h and Integrate in cpp/open3d/t/geometry/kernel/VoxelBlockGridImpl.h, then trace the existing bounds check around the depth lookup. Reproduce with a synthetic depth map and known pose if useful; the work is done when lookup rounding matches the projection convention, bounds handling remains correct, and the sampling bias is no longer present.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Checklist
- I have searched for similar issues.
- For Python issues, I have tested with the latest development wheel.
- I have checked the release documentation and the latest documentation (for
mainbranch).
Describe the issue
Note: This was found by Claude Code while I was working on a related thing. I haven't traced through the whole code here myself, but I think this looks like a genuine indexing/rounding bug.
Two files in the same kernel disagree about the pixel convention.
cpp/open3d/t/geometry/kernel/GeometryIndexer.h, TransformIndexer::Project:
*u_out = fx_ * x_in * inv_z + cx_;
*v_out = fy_ * y_in * inv_z + cy_;
This is the standard pinhole model, in which an integer coordinate is the CENTRE of a pixel.
cpp/open3d/t/geometry/kernel/VoxelBlockGridImpl.h, Integrate, then samples the depth map with:
index_t ui = static_cast<index_t>(u);
index_t vi = static_cast<index_t>(v);
float depth = *depth_indexer.GetDataPtr<input_depth_t>(ui, vi) / depth_scale;
static_cast truncates. Under the centre convention the nearest pixel to u is round(u), so
truncation selects the pixel to the left and above, biasing every depth lookup by -0.5 px on
average, and up to -1 px.
Truncation would be correct under a corner-origin convention, but Project does not use that. So
this is an internal inconsistency rather than a convention choice.
Steps to reproduce the bug
Read the two files above; the inconsistency is visible without running anything.
I guess to see the effect, one could integrate a synthetic depth map of a plane with a known pose, then compare the extracted surface against the analytic plane. The reconstructed surface should show displaced consistently with a half-pixel sampling bias, with the displacement growing with the depth gradient across the image.
Error message
No response
Expected behavior
The depth lookup should round rather than truncate, to match Project's convention:
index_t ui = static_cast<index_t>(roundf(u));
index_t vi = static_cast<index_t>(roundf(v));
with the bounds test adjusted accordingly. Claude says bilinear sampling would be better still, but rounding
is the minimal fix that makes the two files consistent.
Open3D, Python and System information
- Operating system: Windows / Ubuntu 24.04 (WSL)
- Python version: 3.11.13
- Open3D version: 0.19.0
- System architecture: x86_64
- Is this a remote workstation?: no
- How did you install Open3D?: built from source & conda
Note: the source quotes above are from current main, not 0.19.0, and the lines are unchanged between them.
Additional information
No response
- Lingua principale
- C++
- Stelle
- 14.3k
- Fork
- 2.7k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di isl-org/Open3D
-
Add explicit list of supported format in io documentationForse già presa @SKSavale l’ha presa 60 giorni fa. Apertafeature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
feature request
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
-
Getting Started page gives incorrect link to development wheelsForse già presa @SatvikMishra08 l’ha presa 59 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Window(title, width, height, flags) ignores the flags argumentForse già presa @Wahaj18 l’ha presa 56 giorni fa. Apertabug
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
compute_fpfh_feature stub incorrectly requires the optional indices argumentForse già presa @huxiaoyi-ovo l’ha presa 60 giorni fa. Apertabug
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
Tutte le issue di isl-org/Open3D
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jaff-chemistry/jaff#231 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
ColumnDecimal::Append(Int128) stores a value outside the Decimal(P, S) range with no error: cut to 32/64 bits, or with too many digitsForse già presa @RUSHIT305 l’ha presa oggi. Apertabug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/clickhouse-cpp#645 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation enhancement help wanted P0
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
I maintainer di solito rispondono entro 1 giorno
-
DXF import: INSERT ignores the BLOCK base pointForse già presa @Kevinzhou03 l’ha presa oggi. ApertaType: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openscad/openscad#7360 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno