Skip to content

Instantly share code, notes, and snippets.

@sight-machine
Created April 17, 2013 18:31
Show Gist options
  • Save sight-machine/5406600 to your computer and use it in GitHub Desktop.
Save sight-machine/5406600 to your computer and use it in GitHub Desktop.

Revisions

  1. sight-machine created this gist Apr 17, 2013.
    13 changes: 13 additions & 0 deletions keypoint.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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.
    output = img.applyLayers()
    # save the results.
    output.save('juniperfeats.png')