graph2plan / PostProcess /g2p /matlab /get_entrance_space.m
Zai
test
06db6e9
raw
history blame contribute delete
356 Bytes
function doorBox = get_entrance_space(doorSeg, doorOri, threshold)
doorBox = [doorSeg(1,:) doorSeg(2,:)];
if doorOri == 0
doorBox(4) = doorBox(4) + threshold;
elseif doorOri == 1
doorBox(1) = doorBox(1) - threshold;
elseif doorOri == 2
doorBox(2) = doorBox(2) - threshold;
elseif doorOri == 3
doorBox(3) = doorBox(3) + threshold;
end