Utility library to help seamlessly stitch screenshot images together.
NOTE: This is horribly inefficient, and wouldn't recommend using it for stitching any large images together. I've kept this around because it was a poor man's attempt at getting an initial system working end-to-end before moving onto better solutions. Recommend using something like OpenCV which is far more performant if you have large/complex image stitching needs.
Takes an ordered array of screenshot image files, then iteratively stiches them together by taking a slice from the top of the next image to stitch, find a pixel match in the current image. Apply the stitch, and repeat with the new image and the following screenshot.
It's horribly inefficient, like O(n²) inefficient, but works well if we ignore time and computational cost..
Crosswind.stitch(
image_paths: [
"./image_1.png",
"./image_2.png"
],
output_paths: "./combination.png"
)After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
This project is not maintained. If you wish to contribute or make changes, you are welcome to fork the codebase for your own needs.
The gem is available as open source under the terms of the MIT License.