Hi I want to use opencv to tell me the pixel values of a blank and white image so the output would look like this
10001 00040 11110 00100
IplImage is the old format for images. You should use the new format, CvMat, which can store arbitrary matrices. An image is just a matrix, after all.
You can then access the pixels using the function cvGet2D, which returns a CvScalar.