Ask Your Question

saedrna's profile - activity

2016-10-07 23:56:41 -0500 received badge  Nice Question (source)
2016-08-18 22:11:32 -0500 received badge  Famous Question (source)
2015-11-12 22:58:13 -0500 received badge  Notable Question (source)
2015-05-22 02:26:43 -0500 received badge  Popular Question (source)
2014-08-07 13:33:43 -0500 received badge  Student (source)
2014-06-16 00:05:52 -0500 asked a question origin pixel in the image coordinate system in opencv

I would like to ask that what's the origin pixel in the image coordinate system used in opencv.

This is closely related to some applications which require sub-pixel accuracies.

In general there may be two kinds of such systems, for the first (0,0) is defined as the center of the upper left pixel, which means the upper left corner of the upper left pixel is (-0,5, -0.5) and the center of the image is ( (cols - 1) / 2, (rows - 1) / 2).

The other one is that (0,0) is the upper left corner of the upper left pixel, so the center of the upper left pixel is (0.5, 0.5) and the center of the image is (cols / 2, rows / 2).

My question is which system is adoted in OpenCV?