Skip to content

Commit

Permalink
Update example.m
Browse files Browse the repository at this point in the history
  • Loading branch information
fbreve committed Jan 23, 2019
1 parent 6c061d2 commit bb65c98
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions example.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% Propagation through Complex Networks. Expert System With Applications,
% v. 123, p.18 – 33, 2019.
%
% by Fabricio Breve - 21/01/2019
% by Fabricio Breve - 23/01/2019
%
% Loading example image
img = imread('ralph.jpg');
Expand All @@ -29,7 +29,11 @@
imgseg = img .* imgres3;
imgseg(imgres3==0)=255;
% Showing segmentation results
subplot(2,2,1), imshow(img),
subplot(2,2,2), imshow(imgslab),
subplot(2,2,3), imshow(imgres),
subplot(2,2,4), imshow(imgseg);
figure('units','normalized','outerposition',[0 0 1 1])
imgslabmix = imread('ralph-scribblemix.jpg');
subplot(2,3,1), imshow(img), title('Original image'),
subplot(2,3,2), imshow(imgslab), title('Scribbles (user-input)'),
subplot(2,3,3), imshow(imgslabmix), title('Scribbles overlaying original image'),
subplot(2,3,4), imshow(gt), title('Ground-truth'),
subplot(2,3,5), imshow(imgres), title('Segmentation results (mask)'),
subplot(2,3,6), imshow(imgseg); title('Segmentation results (extracted foreground)'),

0 comments on commit bb65c98

Please sign in to comment.