How to apply pixel shift to individual pixels in image file?

조회 수: 5 (최근 30일)
Massimiliano
Massimiliano 2015년 3월 3일
댓글: Massimiliano 2015년 3월 30일
I have a gray-scale image file (1024 rows by 1024 columns). The gray values range from 0 to 65535 (16-bit). I also have a distortion correction map (same size as the image file) which indicates how each pixel in the first image must be shifted to create the new 'corrected' image.
I've found several forum posts giving examples on how to apply a shift equally to all pixels. However, in my case, I'd like to apply different shifts to different pixels. In some cases, the shift could also be sub-pixel (in which case, I can imagine I'd have to first split each pixel into sub-pixels).
Thank you in advance for your help.
Massi

채택된 답변

Ashish Uthama
Ashish Uthama 2015년 3월 3일
Have a look at the displacement field syntax of imwarp. Depending on the format of your distortion correction map, it might be as simple as a direct call.
  댓글 수: 1
Massimiliano
Massimiliano 2015년 3월 30일
Thank you, Ashish, for the response. I've looked at IMWARP and it looks like what I need. However, I am running into other issues with regards to its implementation. I'll pitch another question on the forum. Thanks, again.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by