How to shift pixels of an image?

5 views (last 30 days)
Image.Processor
Image.Processor on 6 Nov 2017
Commented: Rik on 7 Nov 2017
Is it possible to shift the pixels of an image so that all the true (white pixels) when cross a certain line they become zero and right after the first pixel becomes zero the rest of the pixels stops there.
I am trying to do this to make a curve into straight line. The idea is to define an imaginary straight line and burn it into the top of image and then shifting all the pixels below it to that line so that when the first true pixel crosses that line it becomes zero and then the loop starts again for next row and column value and goes up to the width of the image. I hope i didn't make the question too complex, I am stuck into this problem anyone who could help will be much appreciated.
TIA
  17 Comments
Rik
Rik on 7 Nov 2017
Let's have 3 hurrahs for the Wayback Machine that also happened to have a copy of this file.

Sign in to comment.

Answers (0)

Categories

Find more on Downloads 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!