Personal tools
You are here: Home Current Projects Art, Film & Music Projects Reprojecting San Jose
 
Document Actions

Reprojecting San Jose

by Richard Milewski last modified 2008-03-19 16:59
    prize winner

We can take a group of pictures and by "stretching" and "warping" them in just the right way, we can make them fit together like pieces in a jigsaw puzzle to make pictures that show us our world in a different way.

Art, Film & Music Projects


No

Whether you're using the built-in snapshot camera in Second Life, or a simple point-and-shoot digital camera in real life, you can take a set of pictures and stitch them together to make panoramic views that show what's in front of you and what's in back of you all in the same picture. Polar reprojections let you take a panoramic image and morph it into a mini-world view like our signature photo of San Jose's Circle of Palms. Gather a group of friends together and take a picture of everyone holding hands round your "world". This exhibit will show you how to create panoramas and polar reprojections of pictures you take in Second life as well as in real life. Everything done here can be done with free and open source software, and we'll show you how to find it. We'll also point out how to do it with popular commercial software you might already have.


0.0

Yes
Project Workspace (wiki) by admin — last modified 2007-12-07 11:24
 
Project Assets: uploaded files, images & documents by admin — last modified 2007-12-07 11:19
 
Project Task List by admin — last modified 2007-12-07 11:21
 

Reprojecting San Jose team roster

Member ID
Richard Milewski

this looks great--can't wait to try out the HUD!

Posted by Nina Simon at 2008-03-14 09:05
Richard,

I was so impressed by the images you shared with me, and it looks like you have the kinks out of the HUD setup. This is a real gift to the SL community. Looking forward to seeing the RL design concept as well...

Nina/Avi

Reprojecting San Jose

Posted by Robert King at 2008-03-24 11:44

In the RL considerations at The Tech we have two places where panoramas might work.One would be in the round theater in the Life section on the second floor. Also there is an underused, almost secret, opening in the golden tube exhibit. Here we can see the golden roots of our valley. This area may lend itself to a historical panorama of San Jose. Maybe each entry could activate a different view.

Making Polar Projections with ImageMagick

Posted by Richard Milewski at 2008-03-25 00:28
I've uploaded a test image named IMTest.jpg to the project wiki. It is a panorama stitched from 6 avitar snapshots taken in Second Life.

The parameters here will produce a 2000 pixel diameter polar projection with a 300 pixel "hole" in the middle, which accounts for the "missing" space below the field of view of the "camera".

The ImageMagick convert command will transform the image in one file and place the result into another. The the mogrify command destructively transforms an image and places the result in the original file.

The -distort option using the Arc method appears to be the correct option choice to carry out the necessary transform. Arguments for the Arc method are documented as:

"Arc the image (variation of polar mapping) over the angle given around a circle. Arguments:

arc_width rotate top_edge_radius bottom_edge_radius
where all but the first argument is optional.

arc_width The angle over which to arc the image side-to-side
rotate Angle to rotate resulting image from vertical center

top_radius Set top edge of source image at this radius

bottom_radius Set bottom edge to this radius (radial scaling)

The resulting image is always resized to best fit the resulting image, (as if using +distort) while attempting to preserve scale and aspect ratio of the original image as much as possible with the arguments given by the user. All four arguments will be needed to change the overall aspect ratio of an 'Arc'ed image. This is a variation of a polar distortion."

Setting a rotate angle of zero places the center of the panorama at 12 o'clock in the resulting polar projection. For the bottom radius, a value of 150 is a reasonable size for this image (we'll need to experiment a bit once we characterize the real life camera set-up).

So the following command line did the trick:

convert -distort Arc 360,0,1000,150 IMTest.jpg Test.jpg

Technically, a radius of about 350 for the center hole produces more correct geometry in the pavement, but it leaves a gaping large hole in the center because camera coverage stopped a bit too high.

Presumably the ImageMagick composite option can be used to paste TheTech logo into the hole in the center of the image, but I haven't actually tested that yet.

Note that the white center hole, and the round image on a black background are accomplished by leaving a one-pixel white line in the top and bottom of the pano image. ...again we can easily add those to the stitched camera output with an ImageMagick command, I suspect.
« August 2008 »
Su Mo Tu We Th Fr Sa
1 2
345 6 7 8 9
101112 13 14 15 16
171819 20 21 22 23
242526 27 28 29 30
31
 

supported by a grant from the Gordon and Betty Moore Foundation icon Gordon and Betty Moore Foundation.