Skip to content

Commit

Permalink
part1 complete and part2 on the way
Browse files Browse the repository at this point in the history
  • Loading branch information
raviBhadeshiya committed May 7, 2017
1 parent 7bb88bb commit 9069021
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 95 deletions.
89 changes: 0 additions & 89 deletions CarTracking/code/main.asv

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function [orientation, location] = ...
helperEstimateRelativePose(matchedPoints1, matchedPoints2, cameraParams)
helperEstimateRelativePos(matchedPoints1, matchedPoints2, cameraParams)

% [fMatrix, inlierIdx] = estimateFundamentalMatrix(...
% matchedPoints1,matchedPoints2,'Method','RANSAC',...
Expand Down
10 changes: 7 additions & 3 deletions VisualOdometry/code/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@
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);
cameraParams = cameraParameters('IntrinsicMatrix', K');
%%

start=1;

for i = start:length(allImages.Files)
image = demosaic(readimage(allImages,i),'gbrg');
undistortedImg = UndistortImage(image,LUT);
if (i > start+1)
if (i < start+1)

else
[point1,point2]=matchPoint(rgb2gray(undistortedImg),rgb2gray(pImage));
figure(1); showMatchedFeatures(undistortedImg,pImage,point1,point2);
[orient, loc] = helperEstimateRelativePose(...
[orient, loc] = helperEstimateRelativePos(...
point1, point2, cameraParams)
end
% figure(1);
Expand Down
Loading

0 comments on commit 9069021

Please sign in to comment.