This file contains 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
from SimpleCV import Image, Color, Display | |
# load an image from imgur | |
img = Image('http://i.imgur.com/lfAeZ4n.png') | |
# use a keypoint detector to find areas of interest | |
feats = img.findKeypoints() | |
# draw the list of keypoints | |
feats.draw(color=Color.RED) | |
# show the resulting image. | |
img.show() | |
# apply the stuff we found to the image. |
This file contains 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
# Make a function that does a half and half image. | |
def halfsies(left,right): | |
result = left | |
# crop the right image to be just the right side. | |
crop = right.crop(right.width/2.0,0,right.width/2.0,right.height) | |
# now paste the crop on the left image. | |
result = result.blit(crop,(left.width/2,0)) | |
# return the results. | |
return result | |
# Load an image from imgur. |
This file contains 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
from SimpleCV import Image, Color, Display | |
# Make a function that does a half and half image. | |
def halfsies(left,right): | |
result = left | |
# crop the right image to be just the right side. | |
crop = right.crop(right.width/2.0,0,right.width/2.0,right.height) | |
# now paste the crop on the left image. | |
result = result.blit(crop,(left.width/2,0)) | |
# return the results. |