Ask Your Question
2

Camera intrinsic matrix

asked Sep 10 '12

Abbas gravatar image

I am new in computer vision and now i want to get the intrinsic matrix of the camera. I have found the once OpencCV library funtion cvCalibrateCamera2. but i am unable to use it only for the intrinsic matrix. Usually i am getting the sample code with the chess currently which is very difficult for me to understand. Can you please let me know any easy sample code of OpenCv through which i can get the intrinsic matrix of camera. I will be very thankful to you.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
3

answered Sep 12 '12

Jacek gravatar image

There's no a simple single function that will give you camera intrinsic parameters. Calibration process requires a few steps:

  1. Acquisition of calibration images (with chessboard pattern or with circle pattern)
  2. Detecting chessboard corners(or blobs in case of circle pattern) with subpixel accuracy
  3. Finding camera calibration paramters: intrinsic matrix and distortion coefficients with

The easiest approach is to use an example provided with OpenCV - calibration.exe. You can use it with your own images, so it'll do a calibration for you and give you camera intrinsic matrix and distortions coefficients.

Read below tutorial, it explains how OpenCV calibration example works and how to use it with your own calibration images: http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html#cameracalibrationopencv

Preview: (hide)

Question Tools

Stats

Asked: Sep 10 '12

Seen: 7,462 times

Last updated: Sep 12 '12