Hi Juan, Nope that's not the issue. Although I checked to make sure. From the code it is called as below import slic as slic This is the only module it bulks at, all the others are fine. There are a lot but they all seem to be fine. #!/usr/bin/python import os import numpy as np from scipy import ndimage as ndi from skimage.segmentation.boundaries import find_boundaries import scipy.ndimage.measurements as msr import slic as slic import skimage.color as skic from sklearn import svm from sklearn.preprocessing import StandardScaler from sklearn.cross_validation import StratifiedKFold from sklearn.grid_search import GridSearchCV import scipy.ndimage.morphology as morph from skimage.filter import threshold_otsu from sklearn import decomposition from scipy.ndimage import convolve import gabor as gb import ogr_gdal as og import matplotlib.pyplot as plt from params import * Cheers. Jeremy. On Monday, 18 November 2013 13:08:33 UTC, Juan Nunez-Iglesias wrote:
Hi Jeremy,
is this just an issue of case? ie "slic" vs "SLIC"? The correct import line should be:
from skimage.segmentation import slic
I hope this helps!
Juan.
On Monday, November 18, 2013, Jeremy Dunne wrote:
Morning All,
I have been trying to port my linux python code to a windows x32 environment and am very close however I just can’t seem to find a way of Python 2.7 recognising the SLIC Module that is within sci-image. Having used Chris Gohlke’s Windows Extensions everything works up until my code looks to import SLIC from SciKit.
Error : No module SLIC
Anyone else had this issue or solved this problem ?
Cheers
Jeremy.
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Mon, Nov 18, 2013 at 5:34 PM, Jeremy Dunne <jdunn4000@gmail.com> wrote:
Nope that's not the issue. Although I checked to make sure. From the code it is called as below
import slic as slic
You cannot import slic by itself, you need to import ``skimage.segmentation.slic``, or just import segmentation and use ``segmentation.slic``. Stéfan
participants (2)
-
Jeremy Dunne -
Stéfan van der Walt