RetouchPRO

Go Back   RetouchPRO > Tools > Software
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Software Photoshop, Lightroom, Paintshop Pro, Painter, etc., and all their various plugins. Of course, you can also discuss all other programs, as well.

Merging Thousands of Images

Reply
 
Thread Tools
  #1  
Old 10-17-2005, 02:07 PM
tetrakarbon tetrakarbon is offline
Junior Member
 
Join Date: Oct 2005
Posts: 2
Merging Thousands of Images

Hi guys! I'm creating a large map from the thousands of small, 256x256 pixel maps from google maps. I have already written a script that downloaded all the images, and saved them with a name indicating where they ought to be on the map (say, 1-1.png is top, left hand corner).

Anyway, I have to now piece all of these images together. There are about 1,800 images, so doing this by hand is a real pain (I actually have already done about 1/8th of the work, and it took 1.5 hours so far). So here's my question: is there a way in photoshop to automate this.

I know about droplets and batch things, etc. But I don't know how to make 'merge two images, with the second directly placed directly below the first in the new image.' If I knew how to do this, I could create ~60 columns with everything lined up.

Any suggestions guys? Without an alternative, I'm afraid I might have to give up Thanks!

-- Ned Ruggeri
Reply With Quote top
  #2  
Old 10-17-2005, 03:22 PM
Craig Walters's Avatar
Craig Walters Craig Walters is offline
Senior Member
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 8,786
Blog Entries: 4
simplest way i know of is to make a new image of the size you want the whole map to be. turn on grid lines or guide lines with 'snap to' turned on and then simply control e each of the smaller images into place. still going to take a while though.

there are also programs out there for doing this sort of thing. in fact, google has one, i think. but not sure you can control it that much. it might be web based. these type programs typically use a keyword, go out and find images on the web and then import them into a grid type image.
Reply With Quote top
  #3  
Old 10-17-2005, 03:38 PM
Cameraken's Avatar
Cameraken Cameraken is offline
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,158
Hi Ned

Welcome to Retouch Pro.

This sounds an interesting project. How did you write your script. Was it in Visual Basic? And how did you download the correct images? Did you do it by postcode? If so how did you get the postcodes in order?

Are your pictures overlapping areas or are they edge to edge correct?

This should be fairly easy in Visual Basic.

Create a new image of the correct size then just read the first 256 pixels of one picture and write them to the new image.Then go on to the next 256 pixels from 1-2 etc.

Even if the images overlap then the process should be the same with a few less than 256 pixels.

I know there is montage software out there which may do this for you but you could write it yourself fairly easily.

Ken
Reply With Quote top
  #4  
Old 10-17-2005, 05:36 PM
tetrakarbon tetrakarbon is offline
Junior Member
 
Join Date: Oct 2005
Posts: 2
Thanks for all the advice guys! I figured out to do it, so I’m all set. Here’s how to do so, for anyone needing to know in the future. I won’t go into how to get images off Google maps, though if anyone’s ever interested, send me an email (rug5geri56uchi5cago5.ed5u – delete 5’s, turn 6 into an @). The way I did it was using ImageMagick for windows. I wrote a Java program to take advantage of its DOS command line, montage. Basically, this is the line:
Montage –geometry +0+0 rowX.bmp imageToMergeX.png rowX.bmp

This appends the image ToMergeX.png to the right of rowX.bmp’s image, saving the result as rowX.bmp. Using a for loop, I continually appended a sequence of images (the horizontal slices of the map) to a horizontal slice file. I created a second, outer for loop in order to get to the next slice. Here’s the program in Java, using the convention x-y.png:

Code:
import java.io.*;
public class mergehoriz
{
	private static int startx = 16773;
	private static int endx = 16834;
	private static int starty = 24329;
	private static int endy = 24397;

	public static void main(String args[]) throws java.io.IOException, java.lang.InterruptedException
	{
		for(int y = starty; y <= endy; y++)
		{
			for(int x = startx; x <= endx; x++)
			{
				String prelim = y + "-horiz.bmp";
				String merger = x + "-" + y + ".png";
				String[] CMD = {"montage", "-geometry", "+0+0", prelim, merger, prelim};
				Process p = Runtime.getRuntime().exec(CMD);
				p.waitFor();
				System.out.println(x - startx);
			}
		}
	}
}
Now I’ll just have to put together the 60 horizontal slices, but this isn’t a big problem for me. I actually don’t know how to use montage for vertical stacking, but I won’t need to for what I do.

Take it easy everyone! Hope this helps if you ever get a similar problem!

-- Ned Rugeri
Reply With Quote top
  #5  
Old 10-17-2005, 06:00 PM
rondon rondon is offline
Senior Member
 
Join Date: Mar 2002
Location: north central florida
Posts: 470
There's the other guys

I've laced some of those google maps together... the hard way.

There are other sources.... and maybe more interesting if this is just for chuckles.

Terra client
allows you to select and area while zoomed out and then save it at whatever level you choose with a click of the mouse... all 1 big photo. or several depending on various limitations.. In my case a phone modem so I take chunks of 30mb or so.

The other is more interesting... World Wind.. from NASA.... a 3D globe that can be zoomed into for higher resolution views...
It really requires a hi-speed connection but a friend downloaded and sent much of it so I squeak by... but not as smoothly.
I may have heard that a new version is near so anyone interested might want to check that out.
Once skilled at this one folks can zoom into valleys with the Mts. on the side etc.
Reply With Quote top
  #6  
Old 10-18-2005, 09:41 AM
winwintoo's Avatar
winwintoo winwintoo is offline
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 942
Have you seen Google Earth ?

margaret
Reply With Quote top
  #7  
Old 10-18-2005, 12:24 PM
rondon rondon is offline
Senior Member
 
Join Date: Mar 2002
Location: north central florida
Posts: 470
hi margaret

I had heard of it... followed your link and discovered that also requires Hi_Speed..... sad.. My only hope for Hi Speed is when/if the new wireless becomes available... haven't heard much about that lately. We lag so far behind many other countries on speed... even those who have it are supposed to be runnning slower here in the US.
Reply With Quote top
  #8  
Old 10-18-2005, 01:07 PM
winwintoo's Avatar
winwintoo winwintoo is offline
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 942
Even with hi-speed, you really need to want to see whatever you're looking at

Course I'm trying to run it in the VirtualPC emulator which doesn't help, but I've heard of western companies that operate in the former Soviet regions that are using it successfully to suss out locations - apparently some of those regions haven't heard that the cold war is over and like to keep secrets.

Take care, Margaret
Reply With Quote top
Reply

  RetouchPRO > Tools > Software


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing images for RetouchPRO jeaniesa Photo Retouching 19 11-05-2016 09:28 PM
Need help extracting/masking images, WILL PAY Ating Classifieds 7 12-17-2006 08:22 PM
Reconsidering 16 bit Ed_L Input/Output/Workflow 14 11-01-2005 10:41 AM
Stolen web images (Translator Please!!) clare Your Website 120 05-24-2003 03:41 PM
$ for RetouchPro - images roger_ele Website Feedback 0 12-04-2002 11:24 PM


All times are GMT -6. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved