Looks simple and sophisticated at the same time! Full of comments and as such easy to follow the chain of thoughts of the author. One can simply make adjustments based on his/her needs. Great job Image Analyst!
Dear Image Analyst,
Thanks for this beautiful code. I have a minor question concerning about the 'keeper' blob image. Is that possible that we segment the keeper blobs while still keep their numbers on it? Like tracing which number of blobs are the brightest and which number are the darkest? How should I write the code?
Thanks for your help!
Very good but the way 'c' grows inside the loop makes it run slow for large runs.
Adding 'c = zeros(outputs,n);' right after the first line defining 'n=length(s)' made this this run 25x faster in my case.