undistortImage function gives out all black image

5 ビュー (過去 30 日間)
Mohamad Safhire
Mohamad Safhire 2017 年 3 月 9 日
回答済み: Vinoth Venkatesan 2020 年 10 月 26 日
This is my first time using the undistortImage function of the computer vision system toolbox in matlab but somehow every image that i try to use with the undistortImage function gives a blank image everytime. I used the camera calibration app to get my camera parameters. Can someone tell me what am i doing wrong?
originalImage = imread(imageFileNames{20});
undistortedImage = undistortImage(originalImage, cameraParams);
figure; imshow(undistortedImage)
here is the camera parameters
here is the originalImage square size are 100mmx100mm
here is the output image
  1 件のコメント
Saksham Gakhar
Saksham Gakhar 2020 年 9 月 3 日
編集済み: Saksham Gakhar 2020 年 9 月 3 日
Same issue! Can someone help?

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

回答 (1 件)

Vinoth Venkatesan
Vinoth Venkatesan 2020 年 10 月 26 日
This looks like it could be an issue with the calibration. Try to use a checkerbord with more squares and have the checkerboard cover as much of the field-of-view as possible.
Another thing to try is to set the 'OutputView' name-value argument in 'undistortImage' to 'full'.
undistortImage(I,cameraParams,'OutputView','full');
Refer here for some tips for preparing the checkerboard and capturing calibration images.

カテゴリ

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