Skip to content

Instantly share code, notes, and snippets.

@mehlah
Last active August 29, 2015 14:06
Show Gist options
  • Save mehlah/9a26d77d7c42a50ead8b to your computer and use it in GitHub Desktop.
Save mehlah/9a26d77d7c42a50ead8b to your computer and use it in GitHub Desktop.
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