I am trying to understand the image pixel coordinate system which is a bit different than the point coordinate system. Sox as far as I know the y increases from top to bottom while x increases from left to right as every image starts from (0,0) origin to the very topleft most corner and bottomright most corner(1019,664) vary based on the image Please find the attached image below
As you can see the topleft corner has coordinates (x:517, y:321) while bottomright corner has coordinates (x:1018, y:302). So not sure why y coordinate of bottomright corner is less than y coordinate of topleft? Here is the code
if(event == cv2.EVENT_LBUTTONDOWN):
cv2.circle(dst, (x,y), 3, (0,255,255), 4, cv2.LINE_AA)
cv2.putText(dst, "x: {x},y:{y}".format(x=x,y=y), (x-250,y), cv2.FONT_HERSHEY_SIMPLEX, 1,(0,100,255),2,cv2.LINE_AA)
cv2.imshow("Destination Image", dst)
The reason I am doing x-250 is just for display purpose. The image coordinate system is the most fundamental concept in Image processing and OpenCV. Can anyone please explain me this concept?