Visualize distortion on the frame after a calibration camera procedure

5 ビュー (過去 30 日間)
Alessandro Antonini
Alessandro Antonini 2015 年 4 月 13 日
回答済み: Dima Lisin 2015 年 4 月 14 日
Dear all, I am wondering how I can display the distortion map on the image that I am going to use.
More in detail, by means of camera calibration toolbox provided by Caltech University there is a function to display the distortion map as in the attached figure, I would like to do the same by means of the new, built in, toolbox for the calibration of the camera provided in Matlab 2014b.
Can you suggest me the right way?
I would be grateful.

採用された回答

Dima Lisin
Dima Lisin 2015 年 4 月 14 日
Hi Alessandro,
There is no built-in function to do this. However, you should be able to write one yourself, using the undistortPoints function. Define a grid of points on your original image, and then call undistortPoints to get their locations in the undistorted image. Subtracting the original locations from the undistorted locations will give you the displacement vectors, which you can display using quiver.

その他の回答 (1 件)

Image Analyst
Image Analyst 2015 年 4 月 14 日
I think you're looking for the quiver() function.
  2 件のコメント
Alessandro Antonini
Alessandro Antonini 2015 年 4 月 14 日
yes, but how can I get the variables to plot by means of quiver function? isn't there an already built function to do this just using the macro-variable coming from the calibration procedure?
Image Analyst
Image Analyst 2015 年 4 月 14 日
I have not actually used quiver yet myself. I though you already had "the distortion map" (a list of vectors) and merely needed a way to display them as a field of arrows.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Support Package for USB Webcams についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by