I am using the stereo calibrator app to calibrate my camera I am using 10 pair of images from my stereo cam setup and giving them as an input in the app. It is generating the stereoParams object which has all the intrinsic and extrinsic matrices that are required, but also at the same time it is also saying a warning in the command prompt
Warning: JPEG library error (8 bit), "Premature end of JPEG file"."
And when i am trying to rectify a image from the stereo cam using the following code:
[J1, J2] = rectifyStereoImages(I1, I2, stereoParams);
It is showing the following error
Operands to the and && operators must be convertible to logical scalar values
Error in vision.internal.calibration.CameraParametersImpl/getValidBounds (line 883) if isempty(coder.target) && (left > right || top > bot) Error in vision.internal.calibration.CameraParametersImpl/computeUndistortBounds (line 785) [xBounds, yBounds] = getValidBounds(this, undistortedMask, ... Error in vision.internal.calibration.StereoParametersImpl/computeOutputBounds (line 371) [xBoundsUndistort1, yBoundsUndistort1] = ... Error in vision.internal.calibration.StereoParametersImpl/computeRectificationParameters (line 271) [xBounds, yBounds] = computeOutputBounds(this, imageSize, ...Error in vision.internal.calibration.StereoParametersImpl/rectifyStereoImagesImpl (line 190) [H1, H2, Q, xBounds, yBounds] = ... Error in rectifyStereoImages (line 99) rectifiedImage1, rectifiedImage2] = rectifyStereoImagesImpl(stereoParams, ...
How do i remove both the the warning and the error???
Best Answer