Skip to content

Fix transformation matrix fed to warp by using tform without inversion#89

Merged
celefthe merged 1 commit into
mainfrom
transformation_issue_fix
Jul 6, 2026
Merged

Fix transformation matrix fed to warp by using tform without inversion#89
celefthe merged 1 commit into
mainfrom
transformation_issue_fix

Conversation

@atejon123

Copy link
Copy Markdown
Collaborator

The previous code inverted tform inside the trf.warp function, which was already inverted (as is output to input transformation as per tform = trf.estimate_transform("affine", template, recording) ). Because of this, the trf.warp ended up getting the input to output transformation matrix, which is not what it requires. Fixed it in the landmarks_affine function.

The tform is already inverted in a way that wrap function requires

@celefthe celefthe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, approved for merge

@celefthe celefthe merged commit 28b1738 into main Jul 6, 2026
8 checks passed
@celefthe celefthe deleted the transformation_issue_fix branch July 6, 2026 15:59
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.

2 participants