Skip to content

Commit

Permalink
compatibly with older MATLABs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedaldi committed Nov 27, 2017
1 parent 97361e9 commit 590b21e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extractBlackBlobs.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@
subplot(1,2,2) ; imagesc(abs(score).^.25) ;
keyboard
end

function m = islocalmax(x,dim)
m = (circshift(x,1,dim) < x) & (circshift(x,-1,dim) < x) ;

function m = islocalmin(x,dim)
m = (circshift(x,1,dim) > x) & (circshift(x,-1,dim) > x) ;

0 comments on commit 590b21e

Please sign in to comment.