Switch to unified view

a b/combinedDeepLearningActiveContour/functions/showCurveAndPhi.m
1
2
% show image, contours
3
function showCurveAndPhi(varargin)
4
5
I=varargin{1};
6
if iscell(I)
7
    I=cell2mat(I);
8
end
9
10
max_range=min(255,max(I(:)));
11
imshow(I,'initialmagnification',200,'displayrange',[0 max_range]); hold on;
12
13
colsty1=['g';'r';'b';'y';'k'];
14
for k=1:nargin-1
15
  
16
    B1=varargin{k+1};
17
    if size(B1,1)==2 || size(B1,2)==2
18
       plot(B1(:,1),B1(:,2),colsty1(k),'LineWidth',2);
19
    else
20
       contour(B1, [0 0], colsty1(k),'LineWidth',2);
21
       %contour(B1, [0 0], 'k','LineWidth',1);
22
    end
23
end
24
25
end