Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all.. I have two Gray scaled images of same surface having black and white horizontal lines alternatively.But in second image there are some shifts in each pixels. I want to find vertical pixel displacement in second image ,considering first image is the reference image. How to do it? Can anyone help me?

What I have tried:

I want to try it in matlab.I dont know how to start.
Posted
Updated 9-Mar-17 21:52pm

1 solution

Pictures are made of pixels (individual points with a color), so you need to extract every pixel of your first picture and compare it with the same pixel coordinates of the second. The difference of the color value can help you to decide. Often it makes sense to have a small allowed difference to avoid noise.

As I googled has matlab some functionality of making that hard work for you: Mathlab example
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900