-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplotMatches3Im.m
More file actions
29 lines (22 loc) · 1.04 KB
/
plotMatches3Im.m
File metadata and controls
29 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function [] = plotMatches3Im(image_left, image_center, image_right, p_L, p_C, p_R)
%PLOTMATCHES Summary of this function goes here
% Detailed explanation goes here
N = size(p_L, 2);
width = size(image_left,2);
% Insert markers at specified points
%image_left = insertMarker(image_left, p_L', 'x', 'Size', round(size(image_left,2)/200));
%image_center = insertMarker(image_center, p_C', 'x', 'Size', round(size(image_left,2)/200));
%image_right = insertMarker(image_right, p_R', 'x', 'Size', round(size(image_left,2)/200));
% join three equally sized images
image_big = [image_left image_center image_right];
% Define Colorlist
c = [1 1 0; 1 0 1; 0 1 1; 1 0 0; 0 1 0; 0 0 1; 1 1 1; 0 0 0];
m = size(c,1); % nr. of colors
% plot lines between images
imshow(image_big);
for i = 1:N
hold on
plot([p_L(1,i),p_C(1,i)+width, p_R(1,i)+2*width],[p_L(2,i),p_C(2,i), p_R(2,i)],'.', 'Color', c(mod(i,m)+1,:),'MarkerSize',14,'LineWidth',2)
plot([p_L(1,i),p_C(1,i)+width, p_R(1,i)+2*width],[p_L(2,i),p_C(2,i), p_R(2,i)],'Color', c(mod(i,m)+1,:))
end
end