Mercurial > hg > mauch-mirex-2010
view _misc/tools/localmax_logical.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
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;