Image Merge

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Image Merge

Post by marcelloe » Tue Dec 17, 2013 10:22 pm

I want to be able to take 2 different images and merge them into 1 new image? I have went through the lessons on image processing. Could someone get me started in the right direction?

Thanks

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image Merge

Post by Klaus » Wed Dec 18, 2013 12:01 am

Hi marcelloe,

maybe this thread will help?
http://forums.runrev.com/phpBB2/viewtop ... 0&start=75


Best

Klaus

marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Re: Image Merge

Post by marcelloe » Wed Dec 18, 2013 6:24 pm

I read through the post and it doesn't seem to be what I am looking for. I want to take the features of one image and take the features of another image and combine into one image. For example: I want to take an apple and an orange and combine into a new image. I hope this makes sense.

Mark

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image Merge

Post by Klaus » Wed Dec 18, 2013 6:28 pm

Hi Mark,

hmm, no idea if and how you could do this in Livecode.

BUT, if these images are already in PNG format with alpha channel (= only the apple/orange)
then you could layout these two images, group them, and ex/import a snapshot from that group
including the alpha channels! Know what I mean? I can create little stack if you like :D

Depends of course on the images you are using...


Best

Klaus

marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Re: Image Merge

Post by marcelloe » Wed Dec 18, 2013 6:33 pm

A sample stack would be great. I just want to take 2 pictures from a camera and combine them to make a new object. Not sure if that is possible.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image Merge

Post by Klaus » Wed Dec 18, 2013 6:41 pm

Hi Mark,
marcelloe wrote:A sample stack would be great. I just want to take 2 pictures from a camera and combine them to make a new object. Not sure if that is possible.
ah, no, my solution will not work in this case!
I do not see any way to "extract" specific objects from the complete image!?


Best

Klaus

marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Re: Image Merge

Post by marcelloe » Wed Dec 18, 2013 6:49 pm

I don't think I was clear. I want to take image of an apple and an image of an orange. I want to combine to create a new image. Example: I want to take the roundness of the orange and the stem of the apple to combine into the new image. Also, maybe merge the 2 colors of the fruit together. I hope that is a better explanation.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image Merge

Post by Klaus » Wed Dec 18, 2013 6:53 pm

I understand what you re after, but I have no idea how you could do that.
In any case you would need to parse the complete image data and do a lot
of computing with that.

Good luck 8)

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4003
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Image Merge

Post by bn » Wed Dec 18, 2013 10:07 pm

Hi Marcelloe,

did you download the stack "Photo Room" that Chris Bodell has a link to in his tag line?

That stack has all the elements to do what you want. All possible variaton of image manipulation and the code is open. Just not exactly merging parts of an image.

This thread also has quite some example stacks to see what you can do whith Livecode
http://forums.runrev.com/phpBB2/viewtop ... f=6&t=8918

But I am afraid Photoshop is better suited to what you want to do. The execution time do do complex image manipulation in Livecode gets quite long.

Kind regards

Bernd

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7239
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Image Merge

Post by jacque » Thu Dec 19, 2013 7:04 pm

I'm not sure it's possible to do what you want in any coding language. LiveCode can manipulate pixels and images in many ways but it takes a human eye to determine which parts of both images should be changed or merged. How will your script determine whether to use the round part of the orange and the stem of the apple? How will your script even know that it is dealing with an apple and an orange? To the computer, it is just a stream of bytes.

If your images are static and known in advance, then the easiest thing to do is to create the combined images yourself in Photoshop and show those when needed. If the images are not known in advance then I don't think it's possible, or at least, not without some pretty advanced AI.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Image Merge

Post by [-hh] » Fri Dec 20, 2013 12:46 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 1:50 pm, edited 1 time in total.
shiftLock happens

marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Re: Image Merge

Post by marcelloe » Fri Dec 20, 2013 2:26 pm

hh:

Can you give me a sample stack of what you just explained, so I can see it visually.

Thanks

Post Reply

Return to “Multimedia”