如何找到图像中像素的位移? [英] How to find displacement of pixel in an image?

查看:854
本文介绍了如何找到图像中像素的位移?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我有两张相同表面的灰度图像,交替显示黑白水平线。但是在第二张图像中,每个像素都有一些偏移。我想在第二张图像中找到垂直像素位移,考虑到第一张图像是参考图像。怎么做?任何人都可以帮助我吗?



我的尝试:



我我想在matlab中试一试。我不知道如何开始。

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.

推荐答案

图片是由像素组成的(带有颜色的单个点),所以你需要提取每一个第一张照片的像素,并将其与第二张照片的相同像素坐标进行比较。颜色值的差异可以帮助您决定。通常有一个小的允许差异以避免噪音是有道理的。



我用Google搜索matlab的一些功能让你努力工作:Mathlab示例
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


这篇关于如何找到图像中像素的位移?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆