Skip to content
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

boundary identification #430

Closed
wadehenning opened this issue Dec 29, 2015 · 8 comments
Closed

boundary identification #430

wadehenning opened this issue Dec 29, 2015 · 8 comments
Labels
enhancement Adds a new feature. up for grabs

Comments

@wadehenning
Copy link

Tim,

Once I have used something like imedge to detect the edges in an image (for example, the contours in a set of separated coffee beans) is there a function that will return the individual contours as a cell array or other object? Similar to Matlab bwboundaries? Or can you suggest another approach to identifying these types of boundaries?

Thank You,
Wade

@wadehenning
Copy link
Author

I did not receive a reply for this question and it is still important. Is there a function that returns individual boundaries in an image? Clearly, I can write my own code for this...
Thank you.

@timholy
Copy link
Member

timholy commented Apr 7, 2016

Sorry there was no response. I don't know of anything that returns the boundaries, but you can use label_components to find the connected regions. I would guess that may be more useful information than the boundaries?

@timholy
Copy link
Member

timholy commented Apr 7, 2016

You can just say ?Images (after using Images) to get an API summary.

@wadehenning
Copy link
Author

Thank you. We are often interested in studying the shapes of the objects that are identified in the images, where shape is defined by an object's boundary function. We didn't want to write code for this if it was already implemented by someone with more experience writing nice Julia, but we are now trying to cut the Matlab cord!

@timholy
Copy link
Member

timholy commented Apr 8, 2016

Then I don't think there's anything existing; you will likely need to strike out on your own. If you come up with something nice, consider sharing!

@wadehenning
Copy link
Author

When we have something generally useful, we will be happy to share it with the community.

@pmargreff
Copy link

Hi, I'm doing some similar and using the function canny_edges to get the boundary, you can try that too.

@wadehenning
Copy link
Author

@pmargreff how do you get the individual boundaries from the returned binary matrix? I have implemented an approach but I should improve the code. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds a new feature. up for grabs
Projects
None yet
Development

No branches or pull requests

5 participants