-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The current implementation of the CreatVertexGrid function has a bug that causes broken projections. This function mixes up rows and columns when defining the grid.
In the current implementation preojections are only computed correctly when the number of cols and rows are even (4x4 mesh):

But produces tearing and artifacts when this is not the case (3x4 mesh):

When determining the number of rows in the calibration mesh, the code currently uses the number of cols (BonVision.CreateVertexGrid.cs, Line 20):
var rows = value.Select(row => row[3]).Distinct().Count();
Fix:
var rows = value.Select(row => row[2]).Distinct().Count();
This change fixes projections for all calibration/interpolation settings, here for the same 3x4 mesh:

glopesdev and eabhorrocks
Metadata
Metadata
Assignees
Labels
No labels