Skip to content

Fix ambiguous (i, j) notation in transform formula#9

Open
maxrjones wants to merge 1 commit intomainfrom
fix-ij
Open

Fix ambiguous (i, j) notation in transform formula#9
maxrjones wants to merge 1 commit intomainfrom
fix-ij

Conversation

@maxrjones
Copy link
Copy Markdown
Collaborator

Summary

  • Replace ambiguous (i, j) notation in the affine transform formula with explicit (col_index, row_index) to prevent confusion with array indexing's (row, col) convention

Motivation

In array programming (numpy, etc.), (i, j) universally means (row, col). But in the transform formula, i was the column index and j was the row index (matching the Affine library's (col, row) input ordering). This mismatch could lead to implementations getting the transform backwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant