Skip to main content

merging images

7 replies [Last post]
bforbhavin
Offline
Joined: 2008-07-08

Hi,

I want to take multiple images as an input and produce one diagram. Is it possible programmatically? Inputs are not fixed and there may be lots of combinations. I was wondering if I can apply some technique like merge image at (x,y) point, connect with another image etc.

Thanks,
Bhavin

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bforbhavin
Offline
Joined: 2008-07-08

Bin packing problem may not help here. Because, this is related to positioning the images, combining it and show it as one image dynamically. e.g. On following link 3 iphones are displayed in single image. I may select few different models of iphone and one combined image would be produced as an output.

http://www.usatoday.com/tech/columnist/edwardbaig/2008-07-08-iphone-3g-r...

Is this possible?

i30817
Offline
Joined: 2006-05-02

Try to create a list of images. Each image, when added to the collection will first merge the images of the same level, by whatever method you want. Then write to a blank image each images like a z-buffer, first applying a Window - Viewport Transformation with the desired image properties. Write back to front like the z-buffer then maybe decrease the Window-Viewport transformation viewport height and width slightly if you want to create an illusion of depth (that will be shattered if the objects are too obviously of dissimilar scale or there are shadows or a million other things).

bforbhavin
Offline
Joined: 2008-07-08

here is the problem - how to merge the images programmatically like we merge using any photo editor. I tried Arithmetic of JAI but its not giving combined image. Any idea on this?

jxc
Offline
Joined: 2005-02-24
bforbhavin
Offline
Joined: 2008-07-08

this may work...did not find any example online....do u know the link where its given?

bforbhavin
Offline
Joined: 2008-07-08

ok..I got an example from following link...it worked...

http://cse-mjmcl.cse.bris.ac.uk/blog/2007/07/27/1185530940001.html

thanks...

i30817
Offline
Joined: 2006-05-02

If you want to save as much space as possible there is a famous computer science problem you need to "solve" http://en.wikipedia.org/wiki/Bin_packing_problem. Or can just use one of the many implementations on 2d game engines (they need it to optimize sprite loading).