-
Notifications
You must be signed in to change notification settings - Fork 5
/
run_show_images.m
50 lines (40 loc) · 1003 Bytes
/
run_show_images.m
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Visualizes all of the images.
addpath('common/');
Consts;
Params;
for ii = 5 %1 : consts.numImages
% Load the RGB image.
load(sprintf(consts.imageRgbFilename, ii), 'imgRgb');
% Load the Depth image.
load(sprintf(consts.imageDepthFilename, ii), 'imgDepth');
load(sprintf(consts.imageDepthRawFilename, ii), 'imgDepthRaw');
% Load the Labels.
imgRegions = get_regions(ii);
imgRegionsS = get_regions(ii,params);
sfigure(1);
% subplot(1,3,1);
imshow(imgRgb,[]);
title('RGB');
axis off;
axis equal;
% subplot(1,3,2);
% imagesc(imgDepth);
% title('Depth');
% axis off;
% axis equal;
% subplot(1,3,2);
% vals = randperm(max(imgRegions(:)));
% vis_regions(imgRegions, vals);
% title('Instances');
% axis off;
% axis equal;
%
% subplot(1,3,3);
% vals = randperm(max(imgRegionsS(:)));
% vis_regions(imgRegionsS, vals);
% title('Segmented');
% axis off;
% axis equal;
set(gcf, 'Name', sprintf('Image %d', ii));
%pause;
end