Monday, February 28, 2011

[Py] SURF tests with

I installed mahotas in my Python for the purpose of trying the SURF. There is a simple example on the mahotas document page, but some minor modifications are needed. Here is the modified example code:

import numpy as np
import pylab

f = mahotas.imread('lena.png')
spoints =

f2 =, spoints[:20])

Note that only grayscale images can be directly used as the input. Here only the first 20 interesting points have been plotted.

No comments:

Post a Comment