Gimp-Forum.net
Matching 2 Images (Layers) With Selected Points - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Matching 2 Images (Layers) With Selected Points (/Thread-Matching-2-Images-Layers-With-Selected-Points)



Matching 2 Images (Layers) With Selected Points - skip671 - 05-23-2023

I have 2 images (maps).  One is a scale image from Google Maps.  The other is an historic map that is not to scale.  There are certain points of reference on each map that can be used to pull the historic map close to scale and provide reference to other points between the two maps.  Is there a way to link 2 images with "points" on each and transform one of the two base on the those links?


RE: Matching 2 Images (Layers) With Selected Points - Krikor - 05-23-2023

(05-23-2023, 02:51 PM)skip671 Wrote: I have 2 images (maps).  One is a scale image from Google Maps.  The other is an historic map that is not to scale.  There are certain points of reference on each map that can be used to pull the historic map close to scale and provide reference to other points between the two maps.  Is there a way to link 2 images with "points" on each and transform one of the two base on the those links?

Maybe this could be useful : https://www.gimp-forum.net/Thread-sg-fit-face-scm-with-gimp-2-10-24?highlight=realing


RE: Matching 2 Images (Layers) With Selected Points - programmer_ceds - 05-23-2023

(05-23-2023, 02:51 PM)skip671 Wrote: I have 2 images (maps).  One is a scale image from Google Maps.  The other is an historic map that is not to scale.  There are certain points of reference on each map that can be used to pull the historic map close to scale and provide reference to other points between the two maps.  Is there a way to link 2 images with "points" on each and transform one of the two base on the those links?

I have a script that allows you to enter the coordinates of 2 points in the two images; it will then move. stretch or shrink and rotate in one operation (thereby minimising interpolation artifacts) - see Align Layer Numerically here: http://programmer97.byethost10.com/GIMP.html


RE: Matching 2 Images (Layers) With Selected Points - skip671 - 05-23-2023

(05-23-2023, 04:11 PM)programmer_ceds Wrote:
(05-23-2023, 02:51 PM)skip671 Wrote: I have 2 images (maps).  One is a scale image from Google Maps.  The other is an historic map that is not to scale.  There are certain points of reference on each map that can be used to pull the historic map close to scale and provide reference to other points between the two maps.  Is there a way to link 2 images with "points" on each and transform one of the two base on the those links?

I have a script that allows you to enter the coordinates of 2 points in the two images; it will then move. stretch or shrink and rotate in one operation (thereby minimising interpolation artifacts) - see Align Layer Numerically here: http://programmer97.byethost10.com/GIMP.html

Thanks for the response.  Can the script be modified to allow more than 2 points?  As I try to reconcile maps, I will be trying to use as many points as possible (known street intersections, hill peaks, river/creek bends, etc).  The more points that are known and fixed should help to provide better context for the dissimilar/changed objects.


RE: Matching 2 Images (Layers) With Selected Points - Ofnuts - 05-23-2023

The problem with maps is that even if they are accurate (so, ruling out "historic" maps...) they may use totally different projections so the problem is not a simple matter of scale and rotation.

You could investigate using panorama or focus apps, they always have some functionality to match points between two shots.


RE: Matching 2 Images (Layers) With Selected Points - denzjos - 05-24-2023

You can try this: https://www.gimp-forum.net/Thread-Align-photos?highlight=denzjos
But as Ofnuts mentioned, there could be some distortion other than just misalignment. Hugin is an option : https://hugin.sourceforge.io