how can I use a camera to capture pixel data directly from the camera and then process this information possibly as an array?
Pick a camera that allows access to the raw image data, and follow the directions.
However, keep in mind that getting absolute color/intensity information out of the individual RGB values per pixel requires a serious effort at calibration.