How to shift pixels of an image?
Show older comments
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
on 6 Nov 2017
I can't understand your question. Could you provide an example (something like a 10x10)? And what you already try to solve the problem?
Image.Processor
on 6 Nov 2017
Image.Processor
on 7 Nov 2017
Edited: Image.Processor
on 7 Nov 2017
Walter Roberson
on 7 Nov 2017
The image seems to be missing
Image.Processor
on 7 Nov 2017
Image.Processor
on 7 Nov 2017
Rik
on 7 Nov 2017
So you want to make the upper drawing into the same shape as the lower one?
Image.Processor
on 7 Nov 2017
Edited: Image.Processor
on 7 Nov 2017
Walter Roberson
on 7 Nov 2017
This appears to correspond to an operation known as "baseline correction". For example someone trying to analyze written words would need to "straighten out" written text.
Image.Processor
on 7 Nov 2017
Rik
on 7 Nov 2017
Baseline correction is not a field I have done something in, so anything I would post is something you should be able to find with your favorite internet search engine in 10 minutes.
Image.Processor
on 7 Nov 2017
Walter Roberson
on 7 Nov 2017
Image.Processor
on 7 Nov 2017
Walter Roberson
on 7 Nov 2017
Rik
on 7 Nov 2017
Answers (0)
Categories
Find more on Startup and Shutdown 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!