I have possibly a unique problem that I have been trying to work out. I will do my best to explain it.
If you could imagine a blank image, that is 512x512 in size, and in the center of this image is a weather radar. This weather radar picks up rainfall reflectivity for each degree of rotation (0 to 359 degrees), with each degree of rotation containing up to 256 pixels in a straight line originating from the center of the image. Each pixel can be one of 16 colours.
The data is supplied as a comma seperated list of each pixel, originating at the center and working its way out toward the end of the image. An example of this is shown below:
- Code: Select all
1,0,0,0,0,0,0,0,1,1,1,0,0,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,
Each number is a 'level' corresponding to a specific RGB value. 0 means do not paint a pixel, and 1 is a white pixel all the way up to 15 which is a dark red pixel.
My problem is that I can draw the 0 degree line easily, but drawing the 1 through to 89, 91 through to 179 etc is proving difficult. I thought about just rotating the image 1 degree for each line but this obviously doesnt work because the image gets larger each time its rotated.
Is there some method that I can use to acheive what I need?
Thanks in Advance for your help.


