Ask Your Question

Revision history [back]

lets look some points of the code ( stitching_detailed.cpp )

    img_warped.convertTo(img_warped_s, CV_16S);
    .
    .
    .
    blender->feed(img_warped_s, mask_warped, corners[img_idx]);
    .
    .
    .
    blender->blend(result, result_mask);

the reason for this problem is type of the image is CV_16S .

The solution is converting image to CV_8U

.
.
blender->blend(result, result_mask);
Mat result8u;
result.convertTo(result8u,CV_8U);
imshow("you can see the image now",result8u);