Monday, March 17, 2008

IMG_2834

Aaargh.... Its shaped like a card but its not to be carried in you wallet. Otherwise the top layer just comes off! And guess what, that's the layer with your name and number and photo on it. Seriously, would it have killed them to make these cards of a slightly better quality? What did they save by creating the cheapest possible kind of card?

Now before you ask me why I cant use the license as an Indian government issued id, let me tell you - that's because its cracked too. It cracked within the first month of my getting it. And no, all the other cards in my wallet are just fine. The govt issued ones are just cheap manufacturing quality.

Monday, March 17, 2008 10:42:57 AM (Eastern Standard Time, UTC-05:00)  #    Comments [6]  | 
 Sunday, March 16, 2008
IMG_2822

Its fun to play with light. Light has so much color and "texture". I bought this strange looking glass bowl at an antique shop. They were selling it as an ashtray. I figured I could use it to hold candles. 

Sunday, March 16, 2008 10:45:42 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
 Friday, March 14, 2008

This Tuesday I finally got my driving license in the US. Well, I technically don't have the license itself yet - it will be mailed to me eventually. Since I had a rental car at my disposal, Kyle and I decided to take a little photography trip. We drove to Lake Lemon, a few miles from Bloomington.

image

We reached the lake a little before sunrise. It had been years since I saw a sunrise, and the quality of the light was just fascinating. Its true what professional photographers say - there is quite nothing like the morning light. Also, wild geese make lovely subjects.

IMG_2457

I usually don't shoot in black and white. Kyle almost always does. Here is my attempt to look vaguely Ansel Adams-ish. The picture below looks a lot better in full resolution. So the hi-res version of the picture is uploaded, you just need to click on it.

 

IMG_2537

Finally, to add a bit of color, here is Lake Lemon a few minutes before sunrise. This too is better hi-res, but in the interest of server space I am uploading only the little version here.

IMG_2283

Friday, March 14, 2008 1:27:34 PM (Eastern Standard Time, UTC-05:00)  #    Comments [7]  | 
 Sunday, March 09, 2008

Graffiti-2   Graffiti-6  Graffiti-1-3

  Graffiti-1-2

Graffiti-7 Graffiti-5

Sunday, March 09, 2008 7:19:43 PM (Eastern Standard Time, UTC-05:00)  #    Comments [3]  | 

Most photographers I talk to, who are hobbyists like me, act a little strange when the topic of post processing comes up. A manner that is rather reminiscent of a stupid friend letting slip something in front of your parents. They look a little squeamish and then they start to feign innocence. "I never post process my pictures", "Oh! that's how it came out of the camera", "I want my photos to be *real*", "Only minimally, just yadda yadda yadda..." etc.

What?

What are you all uptight about? What's the big deal? Do you realize that when you take a digital photograph there is a lot of software in the camera making choices for you already? I haven't done much (if any at all) post processing so far, not because I have anything against it, but because of (1) I don't have the tools and (2) It takes too much time. I do have Picasa on my machine and every now and then I have tried boosting saturation on a picture or cropping out an annoying detail and have felt good about it.

The problem with Picasa is that it doesn't allow much control over things and I still end up wasting a lot of time if I ever start playing with it. Many many years back I had access to a copy of Photoshop and that program simply made me feel stupid - I couldn't get it to do anything. I remember Abdul Rafeeq who was in my undergrad engineering class and was a wiz with Photoshop. Rafeeq used to design all our posters and such, so I had first hand evidence of the fact that the tool was powerful in the right hands. (The only image manipulating program I felt good about was Gimp - the fact that I never installed it and that I never really used used it, made me feel really good about myself. Once in a while I'd find some poor soul struggling with it and feel a deep satisfaction that it wasn't me.)

Enter Adobe Lightroom. Lightroom is a post processing tool designed primarily with the interests of photographers in mind. The tool is designed to let you select and organize pictures, do a decent set of color corrections, tone fixing etc type operations that most photographers are interested in.

I downloaded a copy a few days back on the 30 day trial period and I like it. Its a bit slow, not as responsive as Picasa, but is otherwise rather nice. After playing around with it a bit, I must say I like the added power to fix the color settings of my pictures. Being able to boost color in your pictures (or de-saturate them) is an added dimension of power. Of course, it cant make a bad picture good, but it does compensate for the color of the light, the white balance settings, the nuances of your cameras sensor etc. As a matter of fact, once I get comfortable with this I suspect I will be able to get the look I want without much trouble as well.

image  image

Comparing the detail of someone's forehead. Which one do you think came out of the camera and which one is the post processed version? The odd looking reddish hue, the one on the right, is the version that came out the camera.

The downside? The several hundred dollar price tag. Its cheaper than Photoshop but its a bit too much for what the PhD program pays me.

Sunday, March 09, 2008 1:44:40 AM (Eastern Standard Time, UTC-05:00)  #    Comments [3]  | 
 Saturday, March 01, 2008

I have started liking groups so much, that I think its worth spending some time drawing out these beautiful things with some care. These mathematical abstractions have some really nice corresponding pictures.

 

image

This is the dihedral group D3, produced by
s^3 = i
(st)^2 = i

 

image   image

The quaternion group.

Quaternions are a generalization of complex numbers. I am a little fascinated with the above group because a long time back before I had known of Group theory I had constructed the above diagram in my attempt to understand quaternions and multi-dimensional geometry.

The discovery of quaternions is credited to the great mathematician Hamilton. Story has it that Hamilton had been pondering the issue for a quite a while and fundamental equation of quaternions came to him when he was taking a walk with his wife. It is said he carved the equation into bridge where he was at that time. The bridge, now has a plaque to this effect. So here is the fundamental equation:

ijk = -1

From this we can also derive i^2 = j^2 = k^2 = -1

 

image

The group produced by
s^3 = i
(-s)ts = t^2

where "-s" is to be read as "s inverse".

Here is a slightly different rendition of the same group:

image

 

Here is a different group:

image

This is the group generated by:
s^4 = i
(-s)ts = t^2
t^15 = i

 

image

This is the group generated by a variation of the above equations:
s^4 = i
(-s)ts = t^2
t^5 = i

Saturday, March 01, 2008 3:21:05 PM (Eastern Standard Time, UTC-05:00)  #    Comments [3]  | 

Many years back I worked full time at Microsoft on one of the many projects related to Vista (or what was then called Longhorn). Last December I was visiting friends in the Redmond area when one of the jokingly observed how the code I had written for Microsoft still hadn't seen light of day, while two and a half years later, I had moved on and completed my Masters and had started on my PhD.

This wasn't a sort of accidental slip, but I remember we were told at that time that if we had any ideas to suggest for Vista, they better be ideas that will be new and interesting 3-4 years later when the OS actually ships. This is a tall order for any sort of idea, much less for the volatile world of "software project" ideas.

While this seemed like very ironic humor at that time, over the past month or so, once in a while I thought about what that meant. After all, I had spent a year writing all that code. A very busy year at that - I had spent 15+ hours a day, I daresay, that was my average day, struggling with the turmoil of the massive engineering effort that was Vista.

I wasn't a *great* programmer by many standards, but I'd like to think that I was better than many I had encountered. 15+ hours of my time for about a year, took a lot of out of my life and it didn't seem to have amounted to anything! Sure I was being paid a handsomely, but one one like to think that one's efforts contribute to the world in some way as well. After all that year was full of deadlines and things being rushed to be completed and such. What came of all of it? If it came to nothing, what a waste of life that was...

A few weeks back, I got a call from Steve who works with Google (who has a fascinating blog btw), about coming back and working with them on some stuff. I casually asked what happened about the last thing I had worked on, when I was there last summer. I had made some extensions to the Rhino compiler, the largest part of which was adding the yield control operator to it. Steve said that they were using it. Somewhere in the back of my mind I said "What?!".

Maybe my programming has matured over the years. Maybe the ~6 hrs a day I spent in office as an intern produced production quality code. I somehow assumed that it wouldn't see any real world use. Was it really that special that it was ready for real world use? Don't get me wrong, it wasn't bad code. But it was code that only written, not "baked" for years.

Maybe there was another reason. Maybe, it wasn't a property of the code at all, but of the fact that there was something radically different about the outlooks of both these companies. There are many thing one can say about this "difference in outlook", positive and negative things things about both. But a shift that causes developers to feel effective by default as opposed to feeling ineffective by default, is an empowering thought. "If I build it for you, what will become of it?"

Maybe mine was an isolated case of wasted engineering effort and this is nitpicking. If that's so, I'll be happy for it.

Saturday, March 01, 2008 12:07:22 AM (Eastern Standard Time, UTC-05:00)  #    Comments [2]  | 
 Sunday, February 24, 2008

Part 1 - DOF and Aperture

If you haven't read my photography disclaimer, take a look.

 

Before we start, here are links to one or two external DOF articles:

http://www.mir.com.my/rb/photography/fototech/htmls/depth.html

This link shows some of the math behind the graphs that I plot here. I find it useful to see the graphs plotted in this article to visualize these relationships. You may find the tables they have handy.
http://www.conent.com/ConAdv/Encyclopaedia/Photography/CNQ_CAPhotography001.asp 

 

Continuing from where we left of (Part 1 - DOF and Aperture), lets take a look at the relationship between DOF and distance to the object being focused on a little more closely. In the previous graphs we could get some insight into this relationship. Here we will plot distance on the x-axis and DOF on the y-axis.

 image image

The two graphs above show the DOF changes for the fixed aperture value f/4 and focal length of 50mm. The first graph shows the variation of DOF over a relatively short distances of <5m. The second graph shows how this varies over greater distances and show the non-linearities in the DOF when greater focusing distances are involved. From a distances of about 20m DOF start shooting up and by ~30m you get infinite DOF.

Lets throw in some more aperture values and see what we get. f/1/4, f/1.8, f/2.8, f/4.0, f/5.6

image  image

Nothing very interesting happening with the shorter distances. The larger distances show the larger fstop numbers curving off sooner. This is consistent with the idea that the greater the aperture (i.e. lesser the f-stop value) the lesser the DOF. If you have a lens that can provide f/1.4 you get a rather nice DOF control even upto distances of about 50m! The Canon 50mm f/1.4 prime that costs about 300$ should do that. The much cheaper Canon 50mm f/1.8 prime would be expected to follow the green curve - rather sweet for a 80$ lens.

Lets look at some larger f-stop values.

image image

At f/22 even in distances under 5m we see the DOF curving up. From roughly 5m to 20m for the aperture range of f/5.6 to f/22 we start to get infinite DOF.

 

Now lets vary the focal length a bit, starting with some wide shots.

image

These are plotted for a f/4 aperture. Within 5m each of these DOF graphs curve upward to infinity. At 10mm, if you are focusing on something that a little over a meter away you get infinite DOF! If you are wondering how 10mm is relevant, the Rebel line of cameras support the EFS mount and currently the widest (non-fisheye) lens you can get if the Canon 10-22mm lens - its a beauty.

Lets look at some medium range lengths.

image image

25mm curves upward at roughly 6m. The longer the focal length, the narrower the DOF. A 50mm would curve upward at about 30 meters.

image image

At small distances all these focal length's are very well behaved. You get very narrow DOF and with a good lens, you should get a great bokeh! Each of these focal lengths only reluctantly yield to large DOFs. So if you need to zoom into something thats 50m away and need an infinite DOF, you need to stop down the aperture. :)

There you go. The graphs should show roughly the real world values that you should expect to see with your equipment. You might want to take some approximate readings off these graphs and then go out in the field and see how these values work for you.

In the next part (whenever I get down to writing it), we'll plot the remaining combination  - DOF against focal length.

Sunday, February 24, 2008 11:10:32 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |