Ask Your Question

AttributeError: Image Instance has no attribute 'getLineScan'

asked 2013-04-11 10:40:32 -0500

Koushik S gravatar image

Hi, I wanted to know what the getLineScan method does, so I tried the example present in file (tried it both in iPython and in the python interpreter)

from SimpleCV import *
import matplotlib.pyplot as plt
img = Image('lenna')
s = img.getLineScan(y=128)

but I get the error as follows:

AttributeError                            Traceback (most recent call last)
<ipython-input-11-0512361c0405> in <module>()
      2 import matplotlib.pyplot as plt
      3 img = Image('lenna')
----> 4 s = img.getLineScan(y=128)
      5 plt.plot(s)
      6 plt.plot(ss)

AttributeError: Image instance has no attribute 'getLineScan'
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-12 10:10:52 -0500

Koushik S gravatar image

Hi Richard, You were right. It seems that the installation was the problem (even though I followed the procedures given in the site). Anyway, I just copied and pasted the contents directly from github, and that seemed to work fine. Thank you!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-04-11 10:40:32 -0500

Seen: 339 times

Last updated: Apr 12 '13