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

1 view (last 30 days)
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
Stelios Fanourakis on 27 Sep 2019
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.

Answers (1)

Matt J
Matt J on 27 Sep 2019
Edited: Matt J on 27 Sep 2019
This assumes that every column has at least one white pixel in it:
newImage=accumarray(B{1},1,size(Image)) ;


Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by