Last active
August 29, 2015 14:06
-
-
Save mehlah/9a26d77d7c42a50ead8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ropencv' | |
include OpenCV | |
vect = std::Vector.new(cv::Mat) | |
vect << cv::imread(File.join('data','1-1.JPG')) | |
vect << cv::imread(File.join('data','1-2.JPG')) | |
vect << cv::imread(File.join('data','1-3.JPG')) | |
result_image = cv::Mat.new | |
stitcher = cv::Stitcher::createDefault | |
stitcher.stitch(vect, result_image) | |
cv::imshow('Stitching Result', result_image); | |
cv::wait_key(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on https://github.com/D-Alex/ropencv and this C example http://feelmare.blogspot.fr/2013/11/opencv-stitching-example-stitcher-class.html