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
=begin | |
objective:: | |
Take two similar images, overlay them and show the difference between them. | |
example output: https://github.com/cameronbarker/cameronbarker.github.io/blob/master/prototype/splt/img/art-project.gif | |
requirements:: | |
ruby 2.1.1 | |
image size 616x616 |
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
#http://developers.lyst.com/data/images/2014/02/13/background-removal/ | |
import pgmagick as pg | |
def trans_mask_sobel(img): | |
""" Generate a transparency mask for a given image """ | |
image = pg.Image(img) | |
# Find object |
NewerOlder