
On Nov 4, 2009, at 8:58 PM, Chris Colbert wrote:
Hey Tony,
Thanks for the report.
Can you paste the error you are getting so I know exactly what decorator it is concering?, there may be a way to change it to work with Python 2.5
The error I got came from importing the io module.
import scikits.image.io Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/Tony/python/devel/scikits.image/scikits/image/io/ __init__.py", line 15, in <module> from collection import * File "/Users/Tony/python/devel/scikits.image/scikits/image/io/
collection.py", line 157, in <module> class ImageCollection(object): File "/Users/Tony/python/devel/scikits.image/scikits/image/io/ collection.py", line 241, in ImageCollection @as_grey.setter AttributeError: 'property' object has no attribute 'setter'
This error should be easy to fix, but I thought that using Python 2.6 might be intentional; i.e. that was the intended target. I guess it's not clear which python the scikit targets---hence the requirements file :). Does the scikit target the same python version as scipy?
There is some overlap between scipy.ndimage and the OpenCV stuff. But realize, the OpenCV in the scikit are just wrappers for the OpenCV libraries, of which you need at least version 2.0 (there were some backwards incompatible changes made in 2.0). That said, my personal experience is that OpenCV is much faster than the routines in ndimage. I have timed the OpenCV 2D convlution at 100x - 1000x faster than ndimage.
This performance difference is exactly what I was curious about. Just out of curiosity, is it possible to rename the wrapped functions---the cv prefix seems redundant. (I don't actually have opencv installed; I'm just trying to cause trouble. ;)
OpenCV is not a HARD requirement for the scikit. You can still install it and use everything else without having the opencv libs on your machine, but if and when you add them, the wrappers will "just work", you wont need to rebuild the scikit.
Agreed, I have the requirements separated into required and optional. Thanks, -Tony
Cheers!
Chris