First time here? Check out the FAQ!
answered 2014-11-03 03:53:29 -0600
Hi,
Did you try using imread to get automatically a matrix of your image file ? (Here is an example)
Highgui.imread("PATH_TO_MY_FILE", Highgui.CV_LOAD_IMAGE_GRAYSCALE);