Blurring/Filling in color on jpeg image.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Matthew Alston
il 30 Giu 2014
Modificato: Matthew Alston
il 11 Lug 2014
Hi,
I'm working with painmaps (see example attached), and I'm trying to shade in the red areas. As you can see the red is scribbled on and there are white spaces within, I'd like to take the outer extremities of the red scribbling and fill in everything inside of it red, so that it's one solid block of red. This is so that I can quantify the shaded pixels for analytical purposes. Any help with this would be much appreciated. I was thinking that perhaps imfill or morphological closing could be used, but I'm struggling to make either option work.
Thanks, Matt
0 Commenti
Risposta accettata
Image Analyst
il 30 Giu 2014
Modificato: Image Analyst
il 30 Giu 2014
You need to do some steps like I showed you before to get the red scribbles. Then you need to call activecontour() to get the "envelope" of the red scribbles. See attached demo.
5 Commenti
Image Analyst
il 10 Lug 2014
This code doesn't have the code I just gave you, so no wonder it doesn't fill in anything.
To go up between the legs you'd need a body template to multiply the thing by. You can try to align the template to your image, perhaps with imregister though I'm not sure ho well it would work on just a partial body.
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!