I had wanted to play with some infrared Earth images, so I wanted to put something toegether that read in the downloaded jpg file, let me load it up in an array, and play with it.
I had been meaning to play with the Python Imaging Library, but the Pythonworks folks decided that their installer should put its stuff in the PY22 directory which its own python would be in. So, I copied all of the PIL directory stuff into the Lib directory of VPython, and copied over all the DLL stuff that did not already have a version in the VPython DLL directory.
After some fiddle farting, it is working. I can read in a .jpg file, put the data in an array, and play with it. A humble achievement but it helped me out a lot with work. I am currently only plyings with greyscale data, luminosity or gray scale overlayed on RGB. PIL looks really neat.
If anyone is interested, I'll post the code later. If not, I wont!!!
Waynebo
I had been meaning to play with the Python Imaging Library, but the Pythonworks folks decided that their installer should put its stuff in the PY22 directory which its own python would be in. So, I copied all of the PIL directory stuff into the Lib directory of VPython, and copied over all the DLL stuff that did not already have a version in the VPython DLL directory.
After some fiddle farting, it is working. I can read in a .jpg file, put the data in an array, and play with it. A humble achievement but it helped me out a lot with work. I am currently only plyings with greyscale data, luminosity or gray scale overlayed on RGB. PIL looks really neat.
If anyone is interested, I'll post the code later. If not, I wont!!!
Waynebo