MATLAB Answers


How can I link the last white dot line pixels of the image?

Asked by Stelios Fanourakis on 27 Sep 2019
Latest activity Edited by Matt J
on 27 Sep 2019
I want to link the last white pixels (lines,dots) of the image as you see it. Measuring from bottom to top of the image are the first white dot like pixels you see.
Thank you


Stelios Fanourakis 2019 年 9 月 27 日
The last white pixels are like random dots or short little lines in a flow like a wave. Please, see the last white pixels on the image or the first white pixels as you count from bottom to top. I need to connect those white little short lines between them to create that kind of flow/wave as a curve line.
"the first white pixels as you count from bottom to top"
I don't know what this means. Do you mean the bottom-most white pixel in each column of the image?
Yeah. The last white pixels of every column. If you notice they form a wave shape curve between them. Can I connect them?

Sign in to comment.

1 Answer

回答者: Matt J
2019 年 9 月 27 日
編集済み: Matt J
2019 年 9 月 27 日

This assumes that every column has at least one white pixel in it:
newImage=accumarray(B{1},1,size(Image)) ;


Sign in to comment.