Can we implement locmax2() and locmaxn() for multidimensional local maxima?
For locmax2(), assuming a gridded 2D image, we can use the same idea: use a sliding window and a local maxima must be greater than all other samples in the window.
For locmaxn(), for the general case of nonuniformly sampled N-D signals, we can rely on knnsearch().
Can we implement
locmax2()
andlocmaxn()
for multidimensional local maxima?For
locmax2()
, assuming a gridded 2D image, we can use the same idea: use a sliding window and a local maxima must be greater than all other samples in the window.For
locmaxn()
, for the general case of nonuniformly sampled N-D signals, we can rely onknnsearch()
.