Go Back   Digital Photography School - Photography Forums > General Discussion > Before and After


Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2010, 01:29 AM
inkista's Avatar
Gear Geek Girl
 
Join Date: Jan 2007
Location: San Diego, CA
Posts: 9,154
Default A different digital swirling, or "and you thought little planets were bad"

Hopefully, this is enough in the spirit of the forum, that the mods won't remove it for breaking the letter of the law. My "Before" image is not unaltered straight from camera. It's an equirectangular (360°x180° or spherical pano) that was made by stitching together four hand-held fisheye shots. For the interactive view (needs Flash), go here.

Before:
Under Scripps Pier

After:
drostifying on the quincunx...

This is a math-geek remapping thing, like little planets. There are numerous ways to represent a sphere on a flat 2-D plane. The most common way of representing the earth is the equirectangular one: your longitude and latitude become your x and y values on a cartesian plane. But among the more exotic remappings there's one called Peirce Quincuncial, which remaps the sphere to a square, where one pole is smack in the middle of the square, and the other is split among the four corners.

The thing is, if you get a Peice Quincuncial remapping of a sphere, it's tileable, seamlessly. That's half of what's going on here.

The other half is what's called Droste. Classical Droste effects are things like the Land o'Lakes butter logo: where someone's holding a picture of themselves holding a picture of themselves... etc. etc. Back in 2002, Hendrik Lenstra figured out the math for this kind of effect, similar to how Escher would tile things in his paintings. Once you have the math, you code it.

So, Ben Reichardt aka breic on Flickr used Mathmap, a Gimp plugin. The power of Mathmap is that you can write a script for it in a C-like language. Any kind of mathematical transform can be encoded for Mathmap to perform on a graphic file. In this specific case, we're really lucky. Breic, who wrote the code for "Droste" is an open-source guy, and he freed the code. He's also someone who shoots and likes to remap equirectangulars, so he came up with code that not only does the Peirce Quincuncial remapping, it will also "drostify" it. Doing both, results in an image like the one I came up with. And it, too, is freely available on the Flickr Mathmap group.

I am on a Mac, btw, so I didn't use Gimp or the Mathmap plugin directly, but I used an OSX standalone version called Mathmap Cocoa (it's available at the Mathmap website I linked to above). The basic steps in Mathmap Cocoa are:
  1. Open up breic's Peirce Quincuncial script in the application.
  2. Click on the User Values tab.
  3. Drag and drop your equirectangular on to the "in image" box (shaded in red).
  4. Set ImageH to the height of the equirectangular you're feeding it.
  5. Pull sliders about. :^)
  6. Check the "drostify" checkbox.
  7. Pull some more sliders about until you like the image.
  8. Export the image to a .TIFF file.

If you don't have any equirectangulars to play with, you can skip the Peirce's Quincuncial, and just use the Droste filter (it comes with Mathmap these days), and just do a straight-up Droste-swirly instead:

Infinite Timer

The steps are pretty much the same, only you won't have to check a "drostify" checkbox. The Flickr Escher Droste group has more information on how you can swirl around shapes other than circular by using masks, as well as how to use PS CS4 and Pixel Blender to do Droste.
__________________
I shoot with a Canon 5DmkII, 50D, and S90, and Pansonic G3. flickr stream and equipment list

Last edited by inkista; 02-08-2011 at 04:04 AM.
Reply With Quote
  #2 (permalink)  
Old 05-06-2010, 02:09 AM
dPS +1000 Club
 
Join Date: Sep 2009
Posts: 1,054
Default

Those are really cool effects. But all that math talk is making me a little woozy.
Reply With Quote
  #3 (permalink)  
Old 05-06-2010, 03:00 AM
OsmosisStudios's Avatar
Don't Panic
 
Join Date: Sep 2008
Location: Mississauga / Ottawa
Posts: 11,351
Default

Dont get me wrong, Inkista: you're the goddess of all that is awesome and I would be amazed to meet you... but all I got from this was "ooh pretty picture... mathmathmath... ooh pretty swirly picture!"
__________________
I am responsible for what I say; not what you understand.
OsmosisStudios
Gear List
Reply With Quote
  #4 (permalink)  
Old 05-06-2010, 03:49 AM
Indigo November's Avatar
Honest as a brick
 
Join Date: Feb 2010
Location: Wisconsin
Posts: 1,633
Default

Quote:
Originally Posted by OsmosisStudios View Post
Dont get me wrong, Inkista: you're the goddess of all that is awesome and I would be amazed to meet you... but all I got from this was "ooh pretty picture... mathmathmath... ooh pretty swirly picture!"
LOL, yeah me too!
__________________
-Indigo
D90, Minolta xg-9, Petri gx-1
A bunch of glass, mostly old, manual lenses.
Flickr
Reply With Quote
  #5 (permalink)  
Old 05-06-2010, 07:53 AM
inkista's Avatar
Gear Geek Girl
 
Join Date: Jan 2007
Location: San Diego, CA
Posts: 9,154
Default

And I didn't even post any equations!

Sorry, guys, I knew I was pressurizing it at firehose levels, but if I broke it down into bite-sized chunks, it would've been PAGES and PAGES. And DPS limits you to only four graphics per post. Enjoy the pretty swirlies; don't worry about the math. Just look at the numbered steps.
__________________
I shoot with a Canon 5DmkII, 50D, and S90, and Pansonic G3. flickr stream and equipment list
Reply With Quote
  #6 (permalink)  
Old 05-06-2010, 08:21 AM
Nicole's Avatar
Super Fantastic Moderator
 
Join Date: Dec 2006
Location: Wellington, New Zealand
Posts: 9,225
Default

You come up with the neatest looking things
__________________
Nikon D90 | Sony NEX-3
Nikkor 18-55 | Nikkor 70-300 | Nikkor 50 f/1.4D | Lensbaby 2.0 | Nikkor 85 f/1.8D | Nikkor 105 f/2.8 VR | Sigma 10-20 f/4-5.6 | Nikkor 10.5 f/2.8 Fisheye | Sony 16 f/2.8 | Sony 18-55 | 2xSB600 | Orbis Ring Flash Adapter
My Flickr
Reply With Quote
  #7 (permalink)  
Old 05-06-2010, 11:26 AM
Aegea's Avatar
Stressed out
 
Join Date: Aug 2009
Location: Northern Virginia, USA
Posts: 769
Default

My brain hurts ... I'm gonna reread this after coffee ...
__________________
http://www.flickr.com/photos/54311838@N00/
Feel free to edit and re-post my images to DPS only
Nikon D90, Nikon V1, and a variable bunch of lenses.
Reply With Quote
  #8 (permalink)  
Old 05-06-2010, 12:10 PM
Jill H's Avatar
Stepping into the light
 
Join Date: Oct 2009
Location: Bunbury, Western Australia
Posts: 3,517
Default

I have no idea what you are talking about - and I am too sick with a cold to even try to comprehend it - but the effect is cool.
__________________
Stepping into the light - www.lifeimagesbyjill.blogspot.com/ - and - http://picasaweb.google.com/lifeimagesbyjill

Canon G11, Power Shot Pro1 (L series 28-300), Canon EOS 450D (Rebel XSi) (18-55 & 55-250), Canon EOS 330X (film) (28-90 & 90-300)
Reply With Quote
  #9 (permalink)  
Old 05-06-2010, 09:48 PM
Aegea's Avatar
Stressed out
 
Join Date: Aug 2009
Location: Northern Virginia, USA
Posts: 769
Default

OK, I think I get part of it. The pano is actually an equirectangular mapping from a sphere, and the Pierce quincuncial is a different mapping to the plane. Then you do the Droste magic on the plane. I like it! Very, very cool!
__________________
http://www.flickr.com/photos/54311838@N00/
Feel free to edit and re-post my images to DPS only
Nikon D90, Nikon V1, and a variable bunch of lenses.
Reply With Quote
  #10 (permalink)  
Old 05-06-2010, 10:38 PM
inkista's Avatar
Gear Geek Girl
 
Join Date: Jan 2007
Location: San Diego, CA
Posts: 9,154
Default

Quote:
Originally Posted by Aegea View Post
OK, I think I get part of it. The pano is actually an equirectangular mapping from a sphere,
Yup. The sphere's been mapped to a 2x1 rectangle like this:



Essentially, your latitude is mapped to the y coordinate, and your longitude is mapped to the x coordinate. The top and bottom of the rectangle are the top and bottom of the sphere, and the right and left sides wrap around to seam together. Most of the distortion happens at the poles.

Quote:
and the Pierce quincuncial is a different mapping to the plane.
Yup. For the earth, it looks like this:



If you do one from the top of the sphere, and one from the bottom, they join up seamlessly, and if you flip that 1x2 rectangle, it also tiles seamlessly, like this:



Quote:
Then you do the Droste magic on the plane.
Yay!! You got it!!

Quote:
I like it! Very, very cool!
Thanks! I like it, too.
__________________
I shoot with a Canon 5DmkII, 50D, and S90, and Pansonic G3. flickr stream and equipment list
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

What’s Your Preference?

Daily Digest

Each day we send out a quick email to thousands of DPS readers to notify them of updates. This email is just short excerpt of the first few lines of our latest post with a link if you want to read it all. You can unsubscribe from this this service at any time.

This service is provided by a third party (Feedburner) and you can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Summary

For those wanting a weekly summary of what happens on this site this free email newsletter is probably your best option. It includes a summary of the tips posted to the site each week. This newsletter is subscribed to by over 25000 readers (many who also subscribe to the other options above) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter:

 
SEO by vBSEO 3.3.0