Error with importing canny (filter/feature)
Hi everyone, So the problem is that canny is not working under feature while i see all the tutorials online using the feature module if i look at the directory, it s just not there
print dir(skimage.feature) ['BRIEF', 'CENSURE', 'ORB', '__all__', '__builtins__', '__doc__', '__file__' , '__name__', '__package__', '__path__', '_daisy', '_hessian_det_appx', '_hog', '_texture', 'blob', 'blob_dog', 'blob_doh', 'blob_log', 'brief', 'brief_cy', 'censure', 'censure_cy', 'corner', 'corner_cy', 'corner_fast', 'corner_foerstner', 'corner_harris', 'corner_kitchen_rosenfeld', 'corner_moravec', 'corner_orientations', 'corner_peaks', 'corner_shi_tomasi' , 'corner_subpix', 'daisy', 'greycomatrix', 'greycoprops', 'hessian_matrix', 'hessian_matrix_det', 'hessian_matrix_eigvals', 'hog', 'local_binary_pattern', 'match', 'match_descriptors', 'match_template', 'orb', 'orb_cy', 'peak', 'peak_local_max', 'plot_matches', 'structure_tensor', 'structure_tensor_eigvals', 'template', 'texture', 'util']
looked up a bit on the web this issue, found that it s in feature, proven by :
print dir(skimage.filter) ['LPIFilter2D', '__all__', '__builtins__', '__doc__', '__file__', '__name__' , '__package__', '__path__', '_canny', '_gabor', '_gaussian', '_rank_order', 'canny', 'denoise_bilateral', 'denoise_tv_bregman', 'denoise_tv_chambolle', 'deprecated', 'edges', 'gabor_filter', 'gabor_kernel', 'gaussian_filter', 'hprewitt', 'hscharr', 'hsobel', 'inverse', 'lpi_filter', 'prewitt', 'rank', 'rank_order', 'restoration', 'roberts', 'roberts_negative_diagonal', 'roberts_positive_diagonal', 'scharr', 'sobel', 'threshold_adaptive', 'threshold_isodata', 'threshold_otsu', 'threshold_yen', 'thresholding', 'vprewitt', 'vscharr', 'vsobel', 'wiener']
now the thing is can i fix this and why is it there ? Appreciate any help on the matter. Note : "from skimage import filter" works perfectly
Hi Georges, I believe this is because you are using a tagged version of skimage (probably even the most recent, 0.10.1), but looking at the dev documentation, which reflects a recent move of Canny from filter to feature: https://github.com/scikit-image/scikit-image/pull/1113 Which tutorials are you finding? Anyway, your options are: * Carry on using filter for now, know that this is the expected behaviour * Download the latest `master` branch from github and install that, and use the new feature syntax for Canny. Hope this helps! Juan. On Tue, Nov 18, 2014 at 9:10 PM, Georges H <georgeshattab@gmail.com> wrote:
Hi everyone, So the problem is that canny is not working under feature while i see all the tutorials online using the feature module if i look at the directory, it s just not there
print dir(skimage.feature) ['BRIEF', 'CENSURE', 'ORB', '__all__', '__builtins__', '__doc__', '__file__' , '__name__', '__package__', '__path__', '_daisy', '_hessian_det_appx', '_hog', '_texture', 'blob', 'blob_dog', 'blob_doh', 'blob_log', 'brief', 'brief_cy', 'censure', 'censure_cy', 'corner', 'corner_cy', 'corner_fast', 'corner_foerstner', 'corner_harris', 'corner_kitchen_rosenfeld', 'corner_moravec', 'corner_orientations', 'corner_peaks', 'corner_shi_tomasi' , 'corner_subpix', 'daisy', 'greycomatrix', 'greycoprops', 'hessian_matrix', 'hessian_matrix_det', 'hessian_matrix_eigvals', 'hog', 'local_binary_pattern', 'match', 'match_descriptors', 'match_template', 'orb', 'orb_cy', 'peak', 'peak_local_max', 'plot_matches', 'structure_tensor', 'structure_tensor_eigvals', 'template', 'texture', 'util'] looked up a bit on the web this issue, found that it s in feature, proven by : print dir(skimage.filter) ['LPIFilter2D', '__all__', '__builtins__', '__doc__', '__file__', '__name__' , '__package__', '__path__', '_canny', '_gabor', '_gaussian', '_rank_order', 'canny', 'denoise_bilateral', 'denoise_tv_bregman', 'denoise_tv_chambolle', 'deprecated', 'edges', 'gabor_filter', 'gabor_kernel', 'gaussian_filter', 'hprewitt', 'hscharr', 'hsobel', 'inverse', 'lpi_filter', 'prewitt', 'rank', 'rank_order', 'restoration', 'roberts', 'roberts_negative_diagonal', 'roberts_positive_diagonal', 'scharr', 'sobel', 'threshold_adaptive', 'threshold_isodata', 'threshold_otsu', 'threshold_yen', 'thresholding', 'vprewitt', 'vscharr', 'vsobel', 'wiener'] now the thing is can i fix this and why is it there ? Appreciate any help on the matter. Note : "from skimage import filter" works perfectly -- 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/d/optout.
Hi Juan, thanks for the fast reply ! I was mentioning tutorials such as this one : hough_transform <http://scikit-image.org/docs/dev/auto_examples/plot_line_hough_transform.htm...> that uses the canny from feature, and many others out there even if canny is actually in filter Got the master and 0.10.x. Canny is not in the feature module unless i did something wrong.. On Tuesday, 18 November 2014 12:43:31 UTC+1, Juan Nunez-Iglesias wrote:
Hi Georges,
I believe this is because you are using a tagged version of skimage (probably even the most recent, 0.10.1), but looking at the dev documentation, which reflects a recent move of Canny from filter to feature: https://github.com/scikit-image/scikit-image/pull/1113
Which tutorials are you finding?
Anyway, your options are:
* Carry on using filter for now, know that this is the expected behaviour * Download the latest `master` branch from github and install that, and use the new feature syntax for Canny.
Hope this helps!
Juan.
On Tue, Nov 18, 2014 at 9:10 PM, Georges H <george...@gmail.com <javascript:>> wrote:
Hi everyone,
So the problem is that canny is not working under feature while i see all the tutorials online using the feature module if i look at the directory, it s just not there
print dir(skimage.feature) ['BRIEF', 'CENSURE', 'ORB', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_daisy', '_hessian_det_appx', '_hog', '_texture', 'blob', 'blob_dog', 'blob_doh', 'blob_log', 'brief', 'brief_cy', 'censure', 'censure_cy', 'corner', 'corner_cy', 'corner_fast', 'corner_foerstner', 'corner_harris', 'corner_kitchen_rosenfeld', 'corner_moravec', 'corner_orientations', 'corner_peaks', 'corner_shi_tomasi', 'corner_subpix', 'daisy', 'greycomatrix', 'greycoprops', 'hessian_matrix', 'hessian_matrix_det', 'hessian_matrix_eigvals', 'hog', 'local_binary_pattern', 'match', 'match_descriptors', 'match_template', 'orb', 'orb_cy', 'peak', 'peak_local_max', 'plot_matches', 'structure_tensor', 'structure_tensor_eigvals', 'template', 'texture', 'util']
looked up a bit on the web this issue, found that it s in feature, proven by :
print dir(skimage.filter) ['LPIFilter2D', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_canny', '_gabor', '_gaussian', '_rank_order', 'canny', 'denoise_bilateral', 'denoise_tv_bregman', 'denoise_tv_chambolle', 'deprecated', 'edges', 'gabor_filter', 'gabor_kernel', 'gaussian_filter', 'hprewitt', 'hscharr', 'hsobel', 'inverse', 'lpi_filter', 'prewitt', 'rank', 'rank_order', 'restoration', 'roberts', 'roberts_negative_diagonal', 'roberts_positive_diagonal', 'scharr', 'sobel', 'threshold_adaptive', 'threshold_isodata', 'threshold_otsu', 'threshold_yen', 'thresholding', 'vprewitt', 'vscharr', 'vsobel', 'wiener']
now the thing is can i fix this and why is it there ?
Appreciate any help on the matter.
Note : "from skimage import filter" works perfectly
-- 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...@googlegroups.com <javascript:>. For more options, visit https://groups.google.com/d/optout.
What do you mean by "*and* 0.10.x"? My guess is you are running everything from 0.10. On master, from "skimage.feature import canny" should work. Easy way to check: "import skimage; print(skimage.__version__)". You can tell from the URL in that link, which contains "dev", that it is for the master version. You can find links for the release APIs on the right hand side. Mind if I ask how you got there? Going to the API reference from scikit-image.org takes me to 0.10.x. On Wed, Nov 19, 2014 at 2:06 AM, Georges H <georgeshattab@gmail.com> wrote:
Hi Juan, thanks for the fast reply ! I was mentioning tutorials such as this one : hough_transform <http://scikit-image.org/docs/dev/auto_examples/plot_line_hough_transform.htm...> that uses the canny from feature, and many others out there even if canny is actually in filter Got the master and 0.10.x. Canny is not in the feature module unless i did something wrong.. On Tuesday, 18 November 2014 12:43:31 UTC+1, Juan Nunez-Iglesias wrote:
Hi Georges,
I believe this is because you are using a tagged version of skimage (probably even the most recent, 0.10.1), but looking at the dev documentation, which reflects a recent move of Canny from filter to feature: https://github.com/scikit-image/scikit-image/pull/1113
Which tutorials are you finding?
Anyway, your options are:
* Carry on using filter for now, know that this is the expected behaviour * Download the latest `master` branch from github and install that, and use the new feature syntax for Canny.
Hope this helps!
Juan.
On Tue, Nov 18, 2014 at 9:10 PM, Georges H <george...@gmail.com <javascript:>> wrote:
Hi everyone,
So the problem is that canny is not working under feature while i see all the tutorials online using the feature module if i look at the directory, it s just not there
print dir(skimage.feature) ['BRIEF', 'CENSURE', 'ORB', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_daisy', '_hessian_det_appx', '_hog', '_texture', 'blob', 'blob_dog', 'blob_doh', 'blob_log', 'brief', 'brief_cy', 'censure', 'censure_cy', 'corner', 'corner_cy', 'corner_fast', 'corner_foerstner', 'corner_harris', 'corner_kitchen_rosenfeld', 'corner_moravec', 'corner_orientations', 'corner_peaks', 'corner_shi_tomasi', 'corner_subpix', 'daisy', 'greycomatrix', 'greycoprops', 'hessian_matrix', 'hessian_matrix_det', 'hessian_matrix_eigvals', 'hog', 'local_binary_pattern', 'match', 'match_descriptors', 'match_template', 'orb', 'orb_cy', 'peak', 'peak_local_max', 'plot_matches', 'structure_tensor', 'structure_tensor_eigvals', 'template', 'texture', 'util']
looked up a bit on the web this issue, found that it s in feature, proven by :
print dir(skimage.filter) ['LPIFilter2D', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_canny', '_gabor', '_gaussian', '_rank_order', 'canny', 'denoise_bilateral', 'denoise_tv_bregman', 'denoise_tv_chambolle', 'deprecated', 'edges', 'gabor_filter', 'gabor_kernel', 'gaussian_filter', 'hprewitt', 'hscharr', 'hsobel', 'inverse', 'lpi_filter', 'prewitt', 'rank', 'rank_order', 'restoration', 'roberts', 'roberts_negative_diagonal', 'roberts_positive_diagonal', 'scharr', 'sobel', 'threshold_adaptive', 'threshold_isodata', 'threshold_otsu', 'threshold_yen', 'thresholding', 'vprewitt', 'vscharr', 'vsobel', 'wiener']
now the thing is can i fix this and why is it there ?
Appreciate any help on the matter.
Note : "from skimage import filter" works perfectly
-- 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...@googlegroups.com <javascript:>. For more options, visit https://groups.google.com/d/optout.
-- 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/d/optout.
Everything is working perfectly i believe i just needed a break, apologies and thanks for the fast replies ! import skimage; print(skimage.__version__) 0.11dev On Tuesday, 18 November 2014 23:16:54 UTC+1, Juan Nunez-Iglesias wrote:
What do you mean by "*and* 0.10.x"? My guess is you are running everything from 0.10. On master, from "skimage.feature import canny" should work. Easy way to check: "import skimage; print(skimage.__version__)".
You can tell from the URL in that link, which contains "dev", that it is for the master version. You can find links for the release APIs on the right hand side. Mind if I ask how you got there? Going to the API reference from scikit-image.org takes me to 0.10.x.
On Wed, Nov 19, 2014 at 2:06 AM, Georges H <george...@gmail.com <javascript:>> wrote:
Hi Juan, thanks for the fast reply !
I was mentioning tutorials such as this one : hough_transform <http://scikit-image.org/docs/dev/auto_examples/plot_line_hough_transform.htm...> that uses the canny from feature, and many others out there even if canny is actually in filter
Got the master and 0.10.x. Canny is not in the feature module unless i did something wrong..
On Tuesday, 18 November 2014 12:43:31 UTC+1, Juan Nunez-Iglesias wrote:
Hi Georges,
I believe this is because you are using a tagged version of skimage (probably even the most recent, 0.10.1), but looking at the dev documentation, which reflects a recent move of Canny from filter to feature: https://github.com/scikit-image/scikit-image/pull/1113
Which tutorials are you finding?
Anyway, your options are:
* Carry on using filter for now, know that this is the expected behaviour * Download the latest `master` branch from github and install that, and use the new feature syntax for Canny.
Hope this helps!
Juan.
On Tue, Nov 18, 2014 at 9:10 PM, Georges H <george...@gmail.com> wrote:
Hi everyone,
So the problem is that canny is not working under feature while i see all the tutorials online using the feature module if i look at the directory, it s just not there
> print dir(skimage.feature) ['BRIEF', 'CENSURE', 'ORB', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_daisy', '_hessian_det_appx', '_hog', '_texture', 'blob', 'blob_dog', 'blob_doh' , 'blob_log', 'brief', 'brief_cy', 'censure', 'censure_cy', 'corner', 'corner_cy', 'corner_fast', 'corner_foerstner', 'corner_harris', 'corner_kitchen_rosenfeld', 'corner_moravec', 'corner_orientations', 'corner_peaks', 'corner_shi_tomasi', 'corner_subpix', 'daisy', 'greycomatrix', 'greycoprops', 'hessian_matrix', 'hessian_matrix_det', 'hessian_matrix_eigvals', 'hog', 'local_binary_pattern', 'match', 'match_descriptors', 'match_template', 'orb', 'orb_cy', 'peak', 'peak_local_max', 'plot_matches', 'structure_tensor', 'structure_tensor_eigvals', 'template', 'texture', 'util']
looked up a bit on the web this issue, found that it s in feature, proven by :
> print dir(skimage.filter) ['LPIFilter2D', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '_canny', '_gabor', '_gaussian', '_rank_order', 'canny', 'denoise_bilateral', 'denoise_tv_bregman', 'denoise_tv_chambolle', 'deprecated', 'edges', 'gabor_filter', 'gabor_kernel', 'gaussian_filter', 'hprewitt', 'hscharr', 'hsobel', 'inverse', 'lpi_filter', 'prewitt', 'rank', 'rank_order', 'restoration' , 'roberts', 'roberts_negative_diagonal', 'roberts_positive_diagonal', 'scharr', 'sobel', 'threshold_adaptive', 'threshold_isodata', 'threshold_otsu', 'threshold_yen', 'thresholding', 'vprewitt', 'vscharr', 'vsobel', 'wiener']
now the thing is can i fix this and why is it there ?
Appreciate any help on the matter.
Note : "from skimage import filter" works perfectly
-- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
--
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...@googlegroups.com <javascript:>. For more options, visit https://groups.google.com/d/optout.
participants (2)
-
Georges H
-
Juan Nunez-Iglesias