distorting photos

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

distorting photos

Post by adventuresofgreg » Mon Feb 11, 2013 12:15 am

Hello: Does anyone know of an external that would allow me to set the 4 rect points of a graphic (imported raster image) to any value, then adjust the image accordingly? (ie: to add perspective to a square photo)

Thanks,
Greg K

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: distorting photos

Post by Mark » Mon Feb 11, 2013 12:52 pm

Hi Greg,

You might use ImageMagick.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: distorting photos

Post by adventuresofgreg » Mon Feb 11, 2013 3:09 pm

Thanks Mark: I checked it out - looks like it would work with the Shell command. I think it would be too slow in applying effects to the images. I would need to convert at least 20 frames per second.

Greg

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: distorting photos

Post by Mark » Mon Feb 11, 2013 3:14 pm

Why, Greg? Can't you just use a wireframe to display the extent of the distortion and draw the new image only when the user releases the mouse?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: distorting photos

Post by adventuresofgreg » Mon Feb 11, 2013 3:39 pm

Hi Mark: no, I need to process the image distortion on the fly. I'm trying to design a stereographic viewer - where the user would view and interact with a collection of rectangular images in 3D space. As the images are being moved, and re-sized, and as the user makes changes to his/her perspective, the polygons that define the rect of each image, need to change dynamically, and the images contained in the polygons, would also need to distort dynamically. It looks like this external from Obleo could work. Not sure if it will do this distort, or how fast.

http://www.obleoproductions.com/page3/p ... age21.html

Post Reply