3D point cloud using multiple 2D images in Matlab

532 Views Asked by At

I am trying to construct Structure from motion with multiple views in MATLAB But error occuring about camera parameters Kindly clear me how can i create my own camera parameters from 356 RGB Aerial images and how can i construct 3d point cloud from these images using MATLAB Kindly Help me It will be a great Favour.

I tried to export Camera info from exif file and meta data as camera parameter

It is the error https://www.mathworks.com/help/vision/examples/structure-from-motion-from-multiple-views.html in this example code, when i implemented it on my data

Undefined function or variable 'cameraParams'.

Error in StructureFromMotionFromMultipleViewsExample (line 80) I = undistortImage(images{1}, cameraParams);

I expected the output 3D point cloud model from multiple images

Edit

imageDir = fullfile('E:\Dataset\rgb-images'); 
imds = imageDatastore(imageDir); 
figure 
montage(imds.Files, 'Size', [3, 2]); 
images = cell(1, numel(imds.Files)); 
for i = 1:numel(imds.Files) 
    I = readimage(imds, i);
    images{i} = rgb2gray(I); 
end 
title('Input Image Sequence'); 
load('F:Practice\cameraParams.mat'); 
I = undistortImage(images{1}, cameraParams);

Here is the code last line contains error.

0

There are 0 best solutions below