Mercurial > hg > mauch-mirex-2010
view _misc/tools/.svn/text-base/localmax_logical.m.svn-base @ 8:b5b38998ef3b
added all that other stuff
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:54:25 +0100 |
parents | |
children |
line wrap: on
line source
function lm = localmax_logical(mat,n) diffmat = [mat(1,:)*0; sign(diff(mat))]; % !!!! attention rethink the 0!!!!! convolver = -[ones(n,1);-ones(n,1)]; lm = conv2(diffmat,convolver,'same') == 2 * n;