Switch to unified view

a b/combinedDeepLearningActiveContour/functions/scaleContour.m
1
2
% scale a given contour based on a center and widow size
3
function   Ct=scaleContour(C,cnt,M)
4
% C : input contour
5
% cnt : center
6
% M   : window size
7
8
9
Ctx=C(:,1)-cnt(1)+M/2+.5;
10
Cty=C(:,2)-cnt(2)+M/2+.5;
11
12
Ct=[Ctx,Cty];
13
14
15
end