3D construction by 2D images from single camera from Structure from Motion

1 view (last 30 days)
I am construction 3D sturucre of object from single camera images. I used redmi note pro 5 mobile camera ,its image size is 3000*4000. Its rgb. I took several photos of chess board pattern calibrated using calibration code of single camera from Matlab. I got Interensic parameters and and Exentrisic parameters of camera. I used camera parameters for 3D costruction. I used 3D costruction by Stucture From Motion algorithm from 2 Images used in matlab suport. When I use my images using
I1 = undistortImage(I1, cameraParams);
I2 = undistortImage(I2, cameraParams);
I am getting very much more bent images
last I am getting only few points in 3D map.
please let me know what is problem. Is there any solution for this
  2 Comments
Vinitha Patil
Vinitha Patil on 7 Apr 2020
I think I loaded camera parameter from vision toolbox directory.
I used
load upToScaleReconstructionCameraParameters.mat
from calibration code I got camera parameters in parmas. but I don't know how to load it in 3D costruction code.If
I used
load parmas
it is giving error
please hep me out for solving this problem
i attached calibration code
images = imageDatastore('C:\Users\HP\Documents\MATLAB\vinihtha\calibra');
imageFileNames = images.Files;
[imagePoints, boardSize] = detectCheckerboardPoints(imageFileNames);
squareSize = 39; % millimeters
worldPoints = generateCheckerboardPoints(boardSize, squareSize);
I = readimage(images, 1);
imageSize = [size(I, 1), size(I, 2)];
[params, ~, estimationErrors] = estimateCameraParameters(imagePoints, worldPoints, ...
'ImageSize', imageSize);figure;
showExtrinsics(params, 'CameraCentric');
figure;
showExtrinsics(params, 'PatternCentric');
figure;
showReprojectionErrors(params);displayErrors(estimationErrors, params);

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!