simulating pictures taken with camera phones

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
paulj

simulating pictures taken with camera phones

Post by paulj »

Hi

Newbie here, although been using the basic convert type commands for a while. I am trying to write an application for the mobile phone, which basically captures a photo, and sends to a server. In order to setup a lab system, I wanted to see if i could use Imagemagick to simulate the different types of images a camera user would take. I assume something like

1. Rotating
2. Blurring
3. perspective/skew

type operations would do the trick, but then I am not sure. And if this is the case, then how can you use these, i.e how much rotation would you apply, or skew, or is this just guess work. The user will be taking picture of say paintings, but of course may not hold the phone perpendicularly , or even vertically.

tks

Paul
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: simulating pictures taken with camera phones

Post by snibgo »

I don't have a camera phone, so can't help.

But they seem to be quite common. Why not borrow one and find out? Why simulate when you can have the real thing?
snibgo's IM pages: im.snibgo.com
paulj

Re: simulating pictures taken with camera phones

Post by paulj »

Because I am trying to write some code which works with images from a phone, problem is that we need to create a test environment, and taking 1000+ images in various positions of say a painting is not simple, hence if we could simulate we have more control over the input and output, and hence can really delve into the results.


tks

Paul
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: simulating pictures taken with camera phones

Post by fmw42 »

IM can do the rotating (-rotate), skewing (-shear) and blurring (-blur or -gaussian-blur) easily. You may find that my 3Drotate script gives you easier control on the perspective than using IM -distort perspective with control points.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: simulating pictures taken with camera phones

Post by snibgo »

I'm trying to understand, so we can help you. What do you hope to achieve with ImageMagick that you couldn't do with a camera phone in 30 minutes?
snibgo's IM pages: im.snibgo.com
paulj

Re: simulating pictures taken with camera phones

Post by paulj »

Hi

Imagine having 100K pictures, all of which need to be photographed with a camera, at various angles, tilts, zoom etc, thats alot of camera time, even if I could click fast. If I could set this up using software, then I leave it to run, and come back. Of course the tilt, rotation is also recorded, hence if I need to refer back to re-create I can easily, but just using my handy cameraphone its not really possible.

Paul
Post Reply