@@ -175,14 +175,14 @@ test('patch with one keypoint, centroidPatchDiameter=15', () => {
175
175
176
176
test . each ( [
177
177
{
178
- message : 'betterScaleneTriangle ' ,
179
- image : 'betterScaleneTriangle ' ,
178
+ message : 'scaleneTriangle ' ,
179
+ image : 'scaleneTriangle ' ,
180
180
} ,
181
181
{
182
- message : 'betterScaleneTriangle90 ' ,
183
- image : 'betterScaleneTriangle90 ' ,
182
+ message : 'scaleneTriangle90 ' ,
183
+ image : 'scaleneTriangle90 ' ,
184
184
} ,
185
- ] ) ( 'patchDiameter = 31 ($message)' , ( data ) => {
185
+ ] ) ( 'centroidPatchDiameter = 31 ($message)' , ( data ) => {
186
186
const centroidPatchDiameter = 31 ;
187
187
188
188
const image = testUtils
@@ -213,7 +213,7 @@ test('verify single keypoint orientation', () => {
213
213
const centroidPatchDiameter = 31 ;
214
214
215
215
const origialImage = testUtils
216
- . load ( 'featureMatching/polygons/betterScaleneTriangle .png' )
216
+ . load ( 'featureMatching/polygons/scaleneTriangle .png' )
217
217
. convertColor ( ImageColorModel . GREY )
218
218
. invert ( ) ;
219
219
@@ -237,7 +237,7 @@ test('verify single keypoint orientation', () => {
237
237
test ( 'small patchsize and large marker' , ( ) => {
238
238
// this test shows that the orientation is not good when the centroidPatchDiameter is too small
239
239
// ideally we should use the same patch size for orientation and descriptors (getKeypointPatch)
240
- const origin = { row : 730 , column : 291 } ;
240
+ const origin = { row : 868 , column : 332 } ;
241
241
const size = 51 ;
242
242
const radius = ( size - 1 ) / 2 ;
243
243
@@ -249,7 +249,7 @@ test('small patchsize and large marker', () => {
249
249
const centroidPatchDiameter = 7 ;
250
250
251
251
const origialImage = testUtils
252
- . load ( 'featureMatching/polygons/betterScaleneTriangle90 .png' )
252
+ . load ( 'featureMatching/polygons/scaleneTriangle90 .png' )
253
253
. convertColor ( ImageColorModel . GREY )
254
254
. invert ( ) ;
255
255
@@ -270,7 +270,8 @@ test('small patchsize and large marker', () => {
270
270
expect ( result ) . toMatchImageSnapshot ( ) ;
271
271
} ) ;
272
272
273
- test ( 'check angle for different windowSize' , ( ) => {
273
+ test ( 'check angle for different centroidPatchDiameter' , ( ) => {
274
+ // we can see the impact of patch size on the orientation
274
275
const image = testUtils
275
276
. load ( 'featureMatching/polygons/scaleneTriangle10.png' )
276
277
. convertColor ( ImageColorModel . GREY )
@@ -284,5 +285,5 @@ test('check angle for different windowSize', () => {
284
285
centroidPatchDiameter : 31 ,
285
286
} ) [ 0 ] . angle ;
286
287
287
- expect ( [ angle77 , angle15 , angle31 ] ) . toBeDeepCloseTo ( [ 69.81 , 62.84 , 61.79 ] , 0 ) ;
288
+ expect ( [ angle15 , angle31 , angle77 ] ) . toBeDeepCloseTo ( [ 5.15 , 3.64 , 9.71 ] , 0 ) ;
288
289
} ) ;
0 commit comments