Museful
Museful

Reputation: 6959

Camera intrinsic matrix convention on image-space origin

Let's call pixel (0,0) the top left pixel in a camera frame/image.

In OpenCV (for example when using an intrinsic camera matrix produced by OpenCV's camera calibration module), image-space location (0,0) refers to which of the following?

  1. The center of top left pixel
  2. The top left corner of the top left pixel (making (0.5,0.5) the center of the top left pixel)

Upvotes: 0

Views: 368

Answers (1)

Christoph Rackwitz
Christoph Rackwitz

Reputation: 15365

(0,0) is the center of that pixel.

I can't point to specific documentation but it's implied all throughout the library, mostly by how sampling/resizing works.

when in doubt about a specific API, test its behavior. such things are unfortunately not specified or documented well.

Upvotes: 1

Related Questions