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

Commit bbfa94d

Browse files
committed
test: add other scalene triangle
1 parent d1d6ea0 commit bbfa94d

10 files changed

+16
-0
lines changed
Loading
Loading
Loading
Loading

src/featureMatching/descriptors/utils/__tests__/getKeypointPatch.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ test.each([
6868
message: 'scalene triangle rotated 10°',
6969
image: 'scaleneTriangle10',
7070
},
71+
{
72+
message: 'better scalene triangle',
73+
image: 'betterScaleneTriangle',
74+
},
75+
{
76+
message: 'better scalene triangle rotated 90',
77+
image: 'betterScaleneTriangle90',
78+
},
7179
])('windowSize = 15 ($message)', (data) => {
7280
const image = testUtils
7381
.load(`featureMatching/polygons/${data.image}.png` as TestImagePath)
Loading

src/featureMatching/matching/__tests__/bruteForceMatch.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ test.each([
6161
destination: 'scaleneTriangle180',
6262
expected: 2,
6363
},
64+
{
65+
message: 'better scalene triangle',
66+
source: 'betterScaleneTriangle',
67+
destination: 'betterScaleneTriangle90',
68+
expected: 2,
69+
},
6470
{
6571
message: 'polygon',
6672
source: 'polygon',

test/TestImagePath.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export type TestImagePath =
6161
| 'featureMatching/crop2.png'
6262
| 'featureMatching/crop3.png'
6363
| 'featureMatching/polygons/star.png'
64+
| 'featureMatching/polygons/betterScaleneTriangle.png'
65+
| 'featureMatching/polygons/betterScaleneTriangle90.png'
6466
| 'featureMatching/polygons/scaleneTriangle.png'
6567
| 'featureMatching/polygons/scaleneTriangle2.png'
6668
| 'featureMatching/polygons/scaleneTriangle10.png'
24.2 KB
Loading
24.7 KB
Loading

0 commit comments

Comments
 (0)