-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ncut and normalized cuts breaking with color and gray images. #2849
Comments
@miketoastmacneil have you seen this example - http://scikit-image.org/docs/dev/auto_examples/segmentation/plot_ncut.html? |
@soupault Ah, I spot the difference now. Nevertheless, this error is super-unhelpful. We should try to catch what is happening and produce a more meaningful error message, something along the lines of "Error: bare RAG was used, without any definition of segment affinities". I guess that might only be helpful to people who know about RAGs. But that's more than you can say for the current error! |
Thanks for chiming in here. @soupault I have seen that example, the RAG construction is somehow different from what I'm attempting. It should work for grayscale (those are the type of images used in the original paper). @jni As far as I could tell it's an issue with the graph construction, where skimage is relying on another Graph package (Networkx). Can look into the origins myself to get to the bottom of it if that helps. |
There's two problems here. Only the first one is shown in the error message but the second problem will manifest as soon as we fix the first.
|
I still can reproduce using v0.19 😖 |
Description
Looks like ncut and normalized cuts are breaking down. Callback and code given below.
Operating system is mac osx sierra 10.12.6, python version is 3.6.2, scikit-image version is 0.14dev. Relevant image is data.astro(). Code and traceback below.
Have also constructed the graph using RAG separately and tried to access labels, as is done in _label_all, and am given an empty dictionary. Couldn't get very far trying to understand the RAG constructor.
The text was updated successfully, but these errors were encountered: