How to deform an image using two reference points?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi there,
I am trying to correlate two images, actually two maps of a mineral acquired with two different instruments. The problem is : one instrument deformed a little bit the map, so it is not possible to do a direct correlation. I would like to adjust and resample this deformed map to fit the other one (map1), considered as reference because the instrument is more accurate in term of XY stage.
I have the two maps as matrix, and I put them in a bigger NaN matrix (I used that to be able to do rotation and move them to find best correlation). I set two reference points, that I can identify in both maps. What I would like is to deform and resample map 2 in order to have ref1-ref2 distance same than in the reference image.
I did this schema, hope it helps to understand my problem. If you have any idea of functions/ tips I could use to achieve that I would be gratefull.
Of course In case of success I would share my code as a function on the platform.

Cheers,
J. Reynes
댓글 수: 0
답변 (1개)
Image Analyst
2019년 1월 8일
Try Steve's blog: Spatial transforms
댓글 수: 4
Image Analyst
2019년 1월 11일
Sorry - didn't see your prior reply for some reason (or else I didn't have time to delve into it).
You're right - that doesn't sound right. If you can verify it, I'd probably call them and prove it to tech support so they can log it as a bug.
Are you sure, or maybe it's just that the screen is not updated so you THINK that's what's happening. I'd put a "drawnow" after the while loop and take out the pause and see if that works or not.
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!