Re: Segmentation and Granulometry with scikit-image

Hi, The output: Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.
import skimage print skimage.__version__ 0.7.2 print skimage.__file__ C:\Python27\lib\site-packages\skimage\__init__.pyc
Thanks El domingo, 16 de diciembre de 2012 09:41:35 UTC-5, Tony S Yu escribió:
On Sat, Dec 15, 2012 at 6:45 PM, Dan <dk...@walla.co.il <javascript:>>wrote:
Hi,
Thanks for the rapid respnse, I am using 0.7.2 on windows.
The error is now:
Traceback (most recent call last): File "C:/Users/DK/PProjects/skimage_seg/scikit_seg.py", line 3, in <module> import skimage.morphology as morph File "C:\Python27\lib\site-packages\skimage\morphology\__init__.py", line 7, in <module> from ._skeletonize import skeletonize, medial_axis ImportError: cannot import name skeletonize
Any idea why?.
Thanks
Hi Dan,
How did you install scikit-image? Also, what's the output of the following?
import skimage print skimage.__version__ print skimage.__file__
-Tony
El sábado, 15 de diciembre de 2012 16:24:31 UTC-5, Tony S Yu escribió:
On Sat, Dec 15, 2012 at 1:58 PM, Dan <dk...@walla.co.il> wrote:
Dear Tony,
Thanks for the script.
I was running the script and I got this error: Traceback (most recent call last): File "C:/Users/DK/PProjects/**skimage_seg/scikit_seg.py", line 18, in <module> img_background = morph.reconstruction(img-h, img) AttributeError: 'module' object has no attribute 'reconstruction'
Process finished with exit code 1
Any reason why?
Thanks a lot, Dan
Hi Dan,
Which version of scikit-image are you running? You'll need at least 0.7 (the latest stable release). You can check the version with the following shell command:
$ python -c "import skimage; print skimage.__version__"
-Tony

Hi, I installed Windows binaries (kindly provided by Christoph Gohlke)- file name:scikit-image-0.7.2.win32-py2.7.exe Thanks El domingo, 16 de diciembre de 2012 10:36:13 UTC-5, Dan escribió:
Hi,
The output: Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.
import skimage print skimage.__version__ 0.7.2 print skimage.__file__ C:\Python27\lib\site-packages\skimage\__init__.pyc
Thanks
El domingo, 16 de diciembre de 2012 09:41:35 UTC-5, Tony S Yu escribió:
On Sat, Dec 15, 2012 at 6:45 PM, Dan <dk...@walla.co.il> wrote:
Hi,
Thanks for the rapid respnse, I am using 0.7.2 on windows.
The error is now:
Traceback (most recent call last): File "C:/Users/DK/PProjects/skimage_seg/scikit_seg.py", line 3, in <module> import skimage.morphology as morph File "C:\Python27\lib\site-packages\skimage\morphology\__init__.py", line 7, in <module> from ._skeletonize import skeletonize, medial_axis ImportError: cannot import name skeletonize
Any idea why?.
Thanks
Hi Dan,
How did you install scikit-image? Also, what's the output of the following?
import skimage print skimage.__version__ print skimage.__file__
-Tony
El sábado, 15 de diciembre de 2012 16:24:31 UTC-5, Tony S Yu escribió:
On Sat, Dec 15, 2012 at 1:58 PM, Dan <dk...@walla.co.il> wrote:
Dear Tony,
Thanks for the script.
I was running the script and I got this error: Traceback (most recent call last): File "C:/Users/DK/PProjects/**skimage_seg/scikit_seg.py", line 18, in <module> img_background = morph.reconstruction(img-h, img) AttributeError: 'module' object has no attribute 'reconstruction'
Process finished with exit code 1
Any reason why?
Thanks a lot, Dan
Hi Dan,
Which version of scikit-image are you running? You'll need at least 0.7 (the latest stable release). You can check the version with the following shell command:
$ python -c "import skimage; print skimage.__version__"
-Tony

On Sun, Dec 16, 2012 at 10:41 AM, Dan <dkin@walla.co.il> wrote:
Hi,
I installed Windows binaries (kindly provided by Christoph Gohlke)- file name:scikit-image-0.7.2.win32-py2.7.exe
Thanks
El domingo, 16 de diciembre de 2012 10:36:13 UTC-5, Dan escribió:
Hi,
The output: Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.
import skimage print skimage.__version__ 0.7.2 print skimage.__file__ C:\Python27\lib\site-packages\**skimage\__init__.pyc
Thanks
Hmm... that all looks good to me. Maybe something went wrong during the install? This is bizarre, because `_skeletonize` is a regular python file (not cython, so it's not a build issue). If you look in "C:\Python27\lib\site-**packages\skimage\morphology\" is there a "_skeletonize.py" and does it like the original<https://github.com/scikit-image/scikit-image/blob/v0.7.2/skimage/morphology/...> (i.e. does it have a `skeletonize` function)? -Tony
El domingo, 16 de diciembre de 2012 09:41:35 UTC-5, Tony S Yu escribió:
On Sat, Dec 15, 2012 at 6:45 PM, Dan <dk...@walla.co.il> wrote:
Hi,
Thanks for the rapid respnse, I am using 0.7.2 on windows.
The error is now:
Traceback (most recent call last): File "C:/Users/DK/PProjects/**skimage_seg/scikit_seg.py", line 3, in <module> import skimage.morphology as morph File "C:\Python27\lib\site-**packages\skimage\morphology\__**init__.py", line 7, in <module> from ._skeletonize import skeletonize, medial_axis ImportError: cannot import name skeletonize
Any idea why?.
Thanks
Hi Dan,
How did you install scikit-image? Also, what's the output of the following?
import skimage print skimage.__version__ print skimage.__file__
-Tony
El sábado, 15 de diciembre de 2012 16:24:31 UTC-5, Tony S Yu escribió:
On Sat, Dec 15, 2012 at 1:58 PM, Dan <dk...@walla.co.il> wrote:
Dear Tony,
Thanks for the script.
I was running the script and I got this error: Traceback (most recent call last): File "C:/Users/DK/PProjects/**skimage**_seg/scikit_seg.py", line 18, in <module> img_background = morph.reconstruction(img-h, img) AttributeError: 'module' object has no attribute 'reconstruction'
Process finished with exit code 1
Any reason why?
Thanks a lot, Dan
Hi Dan,
Which version of scikit-image are you running? You'll need at least 0.7 (the latest stable release). You can check the version with the following shell command:
$ python -c "import skimage; print skimage.__version__"
-Tony
--
participants (2)
-
Dan
-
Tony Yu