transform questions
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
transform questions | stroma23 | 02 May 19:39 |
transform questions | rich404 | 04 May 10:44 |
transform questions | stroma23 | 05 May 01:46 |
transform questions | rich404 | 05 May 09:39 |
transform questions | stroma23 | 07 May 17:33 |
- postings
- 3
transform questions
I have an airphoto image and a trail map image, and wish to overlay them so the trails show appropriately on the airphoto. Have set up layer for each, and have to move, rotate, scale, the trail image hoping to line things up. It requires multiple tweaking (each affecting another), and the result is not very satisfactory. Is there a better way? Ideally pick similar locations on each layer image (say road intersections or geographic feature) and the program will scale, rotate, etc the layer as appropriate to get them aligned ?
-
transformation questions
000038.jpg (17.3 KB)
transform questions
I have an airphoto image and a trail map image, and wish to overlay them so the trails show appropriately on the airphoto. Have set up layer for each, and have to move, rotate, scale, the trail image hoping to line things up. It requires multiple tweaking (each affecting another), and the result is not very satisfactory. Is there a better way? Ideally pick similar locations on each layer image (say road intersections or geographic feature) and the program will scale, rotate, etc the layer as appropriate to get them aligned ?
There are Gimp plugins that will align two layers but only between two points.
There is a plugin here: http://sourceforge.net/projects/gimp-tools/files/scripts/ ofn-layer-aligner about 30 down the list ofn-
In the very-much simplified example: A four point path A-B-C-D defining the start and finish of intended and actual, scales and rotates to suit. Very much depends on the images, different map projection and camera angle and it might be easier to draw in by hand.
A non-gimp solution might be Hugin which has a stack alignment option. Not easy to use and I have not had much success unless the images are very similar.
-
before
route01.jpg (338 KB) -
after
route02.jpg (324 KB)
- postings
- 3
transform questions
thanks very much for the reply... that looks like what I want to do, albeit my upper layer is the map (with white made transparent) over an airphoto base layer, but it should work to scale, rotate, and reposition pertinent map details onto the airphoto as I can pick similar geographic locations on each layer. My application example would be to have that roadway route plan (prior to it actually being built) overlaid onto an airphoto and one could see what might become paved over. At this point however my program knowledge fails me and the path help section still leaves me puzzled. Can you advise how I set up this path abcd and particularly how do I use plug-ins or these scripts? Presumably they need to be imported into the main program somehow. Sorry for being kinda dumb with this, gimp is way more complicated than the photo editing software I usually use just to crop, rotate and adjust levels.
There are Gimp plugins that will align two layers but only between two points.
There is a plugin here: http://sourceforge.net/projects/gimp-tools/files/scripts/ ofn-layer-aligner about 30 down the list ofn-
In the very-much simplified example: A four point path A-B-C-D defining the start and finish of intended and actual, scales and rotates to suit. Very much depends on the images, different map projection and camera angle and it might be easier to draw in by hand.
A non-gimp solution might be Hugin which has a stack alignment option. Not easy to use and I have not had much success unless the images are very similar.
transform questions
thanks very much for the reply... that looks like what I want to do, albeit my upper layer is the map (with white made transparent) over an airphoto base layer, but it should work to scale, rotate, and reposition pertinent map details onto the airphoto as I can pick similar geographic locations on each layer.
Remember this plugin aligns between two points only and scaling / rotating is linear. If you need a degree of distortion to get those several 'pertinent' map details matched you will have a lot of manual editing.
...snip...
At this point however my program knowledge fails me and the path help section still leaves me puzzled. Can you advise how I set up this path abcd and particularly how do I use plug-ins or these scripts?
You do not say which operating system you use, so guessing a Windows user. If you download ofn-layer-aligner.zip, unpack and put the python plugin ofn-layer-aligner.py in the Gimp profile plugins folder. There are help files in the zip.
C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\plug-ins
Easy enough to apply, but tedious to describe on this mailing-list type forum. This a short video on one way you might match two layers.
https://youtu.be/Hc2LhezEhjY only 3 minutes 40 secs so not too arduous.
best of luck
- postings
- 3
transform questions
thank you very much for this... and if you made that video for me (possibly as I think I was the first viewer) I am very indebted for your help - far beyond any anticipation of assistance. It worked perfectly as a (very much needed) guide to deal with the plugins, and subsequently align some map details onto an aerial google earth image. The overall quality is now limited by the map image resolution rather than my crude alignment techniques. Once again thank you for the time and assistance to help me out. With any luck you have aided a bit of forest not to be cut down.