First time here? Check out the FAQ!
i tested out your Code and it doesnt work correctly for me i had to use drawing.at<vec3b>(x,y) instead. Nevetheless thanks alot for your help