How to deform an image using two reference points?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Image Analyst
am 8 Jan. 2019
Try Steve's blog: Spatial transforms
4 Kommentare
Image Analyst
am 11 Jan. 2019
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.
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!