WIP: Region Growing Algorithm: unseeded and seeded#228
Open
ashwanirathee wants to merge 1 commit intosourcefrom
Open
WIP: Region Growing Algorithm: unseeded and seeded#228ashwanirathee wants to merge 1 commit intosourcefrom
ashwanirathee wants to merge 1 commit intosourcefrom
Conversation
johnnychen94
reviewed
Sep 5, 2021
| # points. If more than one point has the same label then they will be contribute | ||
| # to the same segment. | ||
|
|
||
| img = load("assets/worm.jpg") |
Member
There was a problem hiding this comment.
Generally, we should not expect users have an "assets" folder at hand. We should either add it to TestImages or using some explicit download tricks.
Member
Author
There was a problem hiding this comment.
I think I'll add worm.png to imgur then
| # Now, let's segment this image using unseeded_region_growing | ||
|
|
||
| seg_small = unseeded_region_growing(img_small, 0.05) # here 0.05 is the threshold | ||
| result = map(i->get_random_color(i), labels_map(seg_small)) .* (1 .-Gray.(img_small)) |
Member
There was a problem hiding this comment.
Use IndirectArray instead.
juliaimages.github.io/docs/examples/image_segmentation/watershed.jl
Lines 80 to 86 in a064150
Member
There was a problem hiding this comment.
Really we should decide about JuliaImages/ImageSegmentation.jl#76 first
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status:
Initial