Skip to content

Commit

Permalink
Reset Complete
Browse files Browse the repository at this point in the history
  • Loading branch information
raviBhadeshiya committed May 9, 2017
1 parent 84d8347 commit 8ad4800
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 532 deletions.
16 changes: 0 additions & 16 deletions VisualOdometry/code/EssentialMatrixFromFundamentalMatrix.m

This file was deleted.

30 changes: 0 additions & 30 deletions VisualOdometry/code/EstimateFundamentalMatrix.m

This file was deleted.

Binary file removed VisualOdometry/code/data.mat
Binary file not shown.
106 changes: 0 additions & 106 deletions VisualOdometry/code/final.m

This file was deleted.

18 changes: 0 additions & 18 deletions VisualOdometry/code/helperEstimateRelativePos.m

This file was deleted.

12 changes: 0 additions & 12 deletions VisualOdometry/code/helperUpdateCameraPlots.m

This file was deleted.

15 changes: 0 additions & 15 deletions VisualOdometry/code/helperUpdateCameraTrajectories.m

This file was deleted.

23 changes: 0 additions & 23 deletions VisualOdometry/code/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,11 @@
allImages = imageDatastore(imgFolder,'IncludeSubfolders',true);
model=fullfile('..\input\Oxford_dataset\model');
cd code;

[fx, fy, cx, cy, G_camera_image, LUT]=ReadCameraModel(imgFolder,model);clc;
K=[fx 0 cx;0 fy cy;0 0 1];
cameraParams = cameraParameters('IntrinsicMatrix', K');
%%
figure
axis([-50, 50, -140, 20, -10, 1000]);

% Set Y-axis to be vertical pointing down.
view(gca, 3);
set(gca, 'CameraUpVector', [0, -1, 0]);
camorbit(gca, -120, 0, 'data', [0, 1, 0]);

grid on
xlabel('X (cm)');
ylabel('Y (cm)');
zlabel('Z (cm)');
hold on

cameraSize = 7;
camEstimated = plotCamera('Size', cameraSize, 'Location',...
[0 0 0], 'Orientation', eye(3),...
'Color', 'g', 'Opacity', 0);
trajectoryEstimated = plot3(0, 0, 0, 'g-');
title('Camera Trajectory');
%%
start=1;

for i = start:length(allImages.Files)
image = demosaic(readimage(allImages,i),'gbrg');
undistortedImg = UndistortImage(image,LUT);
Expand Down
Loading

0 comments on commit 8ad4800

Please sign in to comment.