How to shift pixels of an image?

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

I can't understand your question. Could you provide an example (something like a 10x10)? And what you already try to solve the problem?
What am i trying to do is. I have an image of 450×1024 and at the upper side of image there is a curve which i want to make straight. Is there any good way to do that ?
Rik
Rik on 6 Nov 2017
Edited: Rik on 6 Nov 2017
Like many people, I sometimes tend to be a visual thinker. If you can't provide an example, I don't think I'll be able to help you.
Okay so here is the image you see it is curved i want to get a straight image out of this. The above image is input image the lower one is my required output.
The image seems to be missing
I uploaded it again but it disappear let me fix the problem and then i will again comment.
so here is the Image
So you want to make the upper drawing into the same shape as the lower one?
Yes, more or less I want the same because you see the Little area in between two blobs that is my Focus Point.
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.
So can you please give some more hint or some more links to papers or algo whatever could you provide would be great. Plus i am also waiting response from Rik's side.
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.
@Rik.. I didn't mean specifically about baseline corr. but i wanted to ask you.. you saw the image and what i want... so can you suggest me any possible solution.
there is a problem in downloading the paper!
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

Asked:

on 6 Nov 2017

Commented:

Rik
on 7 Nov 2017

Community Treasure Hunt

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

Start Hunting!