Tue 1 May 2007
Which way is up? The natural inclanation is to think of everything above ones head as ‘up’. What of the people who are postiontioned 180° away from us on this spining ball of rock? It seems ‘up’ along with everything else is a matter of perspective. What has made me think along these lines lately is the fact that I am working on a program to take the radial profile of an image. As a quick aside a radial profile is a method of sampling all of the pixels in an image radiating out in straight lines from the center of the image.
I was originally having some difficulty as I was thinking of it in that fashion. How do you write a program to draw lines from the center of a square image and sample all the pixels, its near impossible. Well it isn’t IF you change your perspective. I wish I was the one Who was responsible for the idea of the change but it wasn’t me.
The way it works is that you sample a pixel at a particular location (x,y), get the radial coordinate by taking the arctan of the coordinates of the pixel, compare that to your allowed bin values and you are done. Simple ONCE you have the perspective.
There has been a pretty pervasive theme to these entries lately. Almost all of them have had to do with programing. Indeed they started with my stating I don’t like programing. This, as it turns out, was a lie. The main reason I orginally became interested in programing is because it was the closest thing to magic to which I had access. Now I have discovered the joy of physics and the further access to what would appear to be magic, it’s Arthur C. Clarke’s third law.