File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,11 @@ namespace dest {
302
302
}
303
303
}
304
304
}
305
+
306
+ dst.row (0 ) *= imageSize.width ;
307
+ dst.row (1 ) *= imageSize.height ;
308
+
309
+
305
310
return dst.rows () > 0 && dst.cols () > 0 ;
306
311
307
312
}
@@ -364,10 +369,10 @@ namespace dest {
364
369
DEST_LOG (" Failed to read points." << std::endl);
365
370
return false ;
366
371
}
367
- str = std::stringstream (line);
372
+ std::stringstream linestr (line);
368
373
369
374
float x, y;
370
- str >> x >> y;
375
+ linestr >> x >> y;
371
376
372
377
dst (0 , i) = x - 1 .f ; // Matlab to C++ offset
373
378
dst (1 , i) = y - 1 .f ;
@@ -435,10 +440,10 @@ namespace dest {
435
440
DEST_LOG (" Failed to read points." << std::endl);
436
441
return false ;
437
442
}
438
- str = std::stringstream (line);
443
+ std::stringstream linestr (line);
439
444
440
445
float x, y;
441
- str >> x >> y;
446
+ linestr >> x >> y;
442
447
443
448
dst (0 , i) = x;
444
449
dst (1 , i) = imageSize.height - y - 1 ;
You can’t perform that action at this time.
0 commit comments