Skip to content

Commit

Permalink
Update cppDemo.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AIDajiangtang authored Aug 17, 2023
1 parent 605c810 commit 523c1dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cppDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ int main(int argc, char* argv[])
Stitcher::Status status = stitcher->stitch(imgs, pano);
if (status == Stitcher::OK)
{
imshow(stichedImage, pano);
cv::imwrite(stichedImage,pano);
}

Expand Down Expand Up @@ -68,9 +69,9 @@ int main(int argc, char* argv[])
Mat DstresizedImage;
resize(dstImg, DstresizedImage, dstFeature.img_size);
drawMatches(SrcresizedImage, srcFeature.keypoints, DstresizedImage, dstFeature.keypoints, matches[i].matches, img_matches);
cv::imwrite(matchingImage, pano);
cv::imwrite(matchingImage, img_matches);
//-- Show detected matches
imshow("Matches", img_matches);
imshow(matchingImage, img_matches);
cv::waitKey();
}

Expand Down

0 comments on commit 523c1dc

Please sign in to comment.