@@ -12,7 +12,7 @@ void main() {
1212 final (status, pano) = stitcher.stitch (images.cvd);
1313 expect (status, cv.StitcherStatus .OK );
1414 expect (pano.isEmpty, false );
15- cv.imwrite ('test/images_out/stitcher_test.jpg' , pano);
15+ // cv.imwrite('test/images_out/stitcher_test.jpg', pano);
1616 });
1717
1818 test ('cv.Stitcher with mask' , () {
@@ -29,7 +29,7 @@ void main() {
2929 final (status, pano) = stitcher.stitch (images.cvd, masks: masks.cvd);
3030 expect (status, cv.StitcherStatus .OK );
3131 expect (pano.isEmpty, false );
32- cv.imwrite ('test/images_out/stitcher_test_mask.jpg' , pano);
32+ // cv.imwrite('test/images_out/stitcher_test_mask.jpg', pano);
3333 });
3434
3535 test ('cv.Stitcher getter/setter' , () {
@@ -57,4 +57,26 @@ void main() {
5757
5858 expect (stitcher.component.length, greaterThanOrEqualTo (0 ));
5959 });
60+
61+ test ('Issue 48' , () {
62+ final images = [
63+ cv.imread ("test/images/barcode1.png" , flags: cv.IMREAD_COLOR ),
64+ cv.imread ("test/images/barcode2.png" , flags: cv.IMREAD_COLOR ),
65+ ];
66+
67+ // Create Stitcher object
68+ final cv.Stitcher stitcher = cv.Stitcher .create ();
69+
70+ // Estimate transformations and stitch images
71+ final cv.StitcherStatus status = stitcher.estimateTransform (images.cvd);
72+ expect (status, cv.StitcherStatus .OK );
73+
74+ final result = stitcher.composePanorama ();
75+ expect (result.$1, cv.StitcherStatus .OK );
76+ expect (result.$2.isEmpty, false );
77+
78+ final result1 = stitcher.composePanorama (images: images.cvd);
79+ expect (result1.$1, cv.StitcherStatus .OK );
80+ expect (result1.$2.isEmpty, false );
81+ });
6082}
0 commit comments