summaryrefslogtreecommitdiffstats
path: root/baseline/source/susan
Commit message (Expand)AuthorAge
* Whitespace fixes for TACLeBench and copyright update in extra.hJoshua Bakita2020-10-20
* Convert TACLeBench to use new libextra APIJoshua Bakita2020-10-20
* Unify all the versions of extra.h into a single multipurpose headerJoshua Bakita2020-10-19
* Cleanup in extra.h for non-paired benchmarksJoshua Bakita2020-10-17
* Reorganize and commit all the modified TACLeBench code and run scriptsJoshua Bakita2019-10-07
/a> 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
% function f = nonmaxsup(g,ismax,r) return extrema boolean map.
% Input: g = image, gradient image pair [x,y], or [x,y,g] in 3D matrix
%        ismax (=1)/0 is for non maximum/minimum suppression
%        r (=1) is the neighbourhood radius.
% Output:
%        f = thinned extrema boolean map, where
%            d (||gradient||) / d gradient = 0 

% Stella X. Yu, 2000.

function f = nonmaxsup(g,ismax,r)

if nargin<2,
    ismax = 1;
end

if nargin<3,
    r = 1;
end

i = size(g,3);
if i==3,