Mercurial > hg > mauch-mirex-2010
annotate _misc/tools/.svn/text-base/localmax_logical.m.svn-base @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function lm = localmax_logical(mat,n) |
matthiasm@8 | 2 |
matthiasm@8 | 3 diffmat = [mat(1,:)*0; sign(diff(mat))]; % !!!! attention rethink the 0!!!!! |
matthiasm@8 | 4 convolver = -[ones(n,1);-ones(n,1)]; |
matthiasm@8 | 5 lm = conv2(diffmat,convolver,'same') == 2 * n; |