answered Dec 16 '12
OpenCV has multi-dimension matrices.
First dimention of your matrix is 1, i.e. the only index within range is 0. When you call to (1,1,1,1,1) you should get out of range error.