Warning message while using camera calibrator

7 views (last 30 days)
I am trying to calibrate a camera using Matlab Camera Calibrator. After I select the images, I am getting the following warning message: "Division by zero when processing. The value has been set to NaN". Any idea why I am getting this warning. Am I suppose to re-size the image?

Accepted Answer

Rahul Goel
Rahul Goel on 12 Apr 2016
Are you using the images in JPEG format? These warnings look like corrupt exif metadata in the JPEG file that the function is trying to read. This should not affect the actual pixels, so this warning can be ignored. However, please note that saving the calibration images in the JPEG format is not a good idea, because of the compression artifacts. If possible, consider using a format with no compression or with lossless compression, like TIFF or PNG.
Hope this helps.
Dima Lisin
Dima Lisin on 13 Apr 2016
There must be a way to set you camera to store uncompressed images.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by