. . . you'll want to have access to the information actually recorded by the sensor.
FWIW - We don't have access to the information the image sensor pixels actually record.
The image sensor pixels are not capable of recording color. Color has to be interpolated downstream from the pixels.
By the time we first get to see the Raw file as a photo, it has been edited in several ways.
Active pixel sensor - Wikipedia, the free encyclopedia
A pixel is a group of analog electronic devices (some transistors and a photodetector diode) that develops an analog voltage proportional to how much light hits it.
The analog pixel voltage has to be converted to a 12-bit or 14-bit digital number, and at that point we lose contact with the original information the pixels recorded.
The analog-to-digital (A/D) converter may be on the image sensor chip but is a separate group of electronics.
Analog-to-digital converter - Wikipedia, the free encyclopedia
A/D conversion involves quantization of the input, so it necessarily introduces a small amount of error.
Once the A/D conversion is done the image data file can be written to the memory card.
The image data recorded on the memory card is further altered by the Raw converter that produces the image we humans can see.
Those alterations include:
Demosaicing - a software algorithm that interpolates the colors in the scene based on the layout of the Bayer Array that is in front of the image sensor.
Demosaicing - Wikipedia, the free encyclopedia
Gamma encoding is used to alter luminosity on the image - The image sensor pixel responds to light in a linear progression (gamma = 1.0). The gamma of each pixel has to be encoded (altered) so the luminosity of the pixel closely approximates the non-linear way human eyes would see the same amount of light (gamma between 2.0 and 3.0).
http://en.wikipedia.org/wiki/Gamma_correction
Tone mapping - which alters dynamic range.
Tone mapping - Wikipedia, the free encyclopedia
Depending on the Raw converter used other alterations to the image data are made - sharpening, noise reduction, etc.
The same Raw image data file on the memory card file when run through different Raw converter applications will look different in each Raw converter because each Raw converter is using slightly different algorithms to produce the photo we see before
we get to do any editing.
For more information:
Real World Camera Raw with Adobe Photoshop CS5
The Digital Negative: Raw Image Processing in Lightroom, Camera Raw, and Photoshop
Real World Camera Raw: Exposure and Linear Capture | Exposure and Linear Capture | Peachpit
http://www.adobe.com/digitalimag/pdfs/linear_gamma.pdf