Open drdozer opened 1 year ago
using Watershed
function seeded_region_growing(img, seeds) labels = label_components(img) for seed in seeds labels[seed[1]] = seed[2] end return labels end
I can't replicate this error. In case it's dependent on the specific image, it would help to have one that reproduces it.
I am trying to load in some jpeg images (from a phone) and segment out the background. My code looks like this:
The images are loaded with
load
. I can view the images in pluto, so I know the data is good. The type of the image isMatrix{RGB{N0f8}} (alias for Array{RGB{Normed{UInt8, 8}}, 2})
.When I call
seeded_region_growing
I get this error: