I just had a little play with the raw data from the Pi camera yesterday using the excellent PiCamera lib.