undistortImage function gives out all black image
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161516/image.png)
here is the originalImage square size are 100mmx100mm
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161517/image.png)
here is the output image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161519/image.jpeg)
1 Kommentar
Saksham Gakhar
am 3 Sep. 2020
Bearbeitet: Saksham Gakhar
am 3 Sep. 2020
Same issue! Can someone help?
Antworten (1)
Vinoth Venkatesan
am 26 Okt. 2020
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');
0 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for USB Webcams finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!