Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Commit 5107e0f

Browse files
committed
fix(drawKeypoints): showOrientation was buggy
1 parent bfeacfb commit 5107e0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/featureMatching/visualize/drawKeypoints.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ export function drawKeypoints(
132132
const from = absoluteOrigin;
133133
const radAngle = (angle * Math.PI) / 180;
134134
const to: Point = {
135-
column: from.column + Math.round(radius * Math.sin(radAngle)),
136-
row: from.row + Math.round(radius * Math.cos(radAngle)),
135+
column: from.column + Math.round(radius * Math.cos(radAngle)),
136+
row: from.row - Math.round(radius * Math.sin(radAngle)),
137137
};
138138
newImage.drawLine(from, to, {
139139
strokeColor: keypointColor,

0 commit comments

Comments
 (0)