From 19c21d7174bc2ba8ba27602398cd57ca1735784e Mon Sep 17 00:00:00 2001 From: tomasxu Date: Tue, 13 May 2014 15:49:27 +0800 Subject: [PATCH] Update img_patch.m an abs() function has added, the original expression will make a mistake in the case:bb=[3.6;3.4;3;3] --- img/img_patch.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/img/img_patch.m b/img/img_patch.m index b3918ff7..e46c4bee 100644 --- a/img/img_patch.m +++ b/img/img_patch.m @@ -56,7 +56,7 @@ else % All coordinates are integers - if sum(round(bb)-bb)==0 + if sum(abs(round(bb)-bb))==0 L = max([1 bb(1)]); T = max([1 bb(2)]); R = min([size(img,2) bb(3)]);