matrixlocalminmax

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.8, Creation date: 2019-12-11, Last change: 2025-09-14

returns the local Minima and Maxima of a mtrix

Description

+/- 3 => Global Maxima or Minima
+/- 2 => Local Maxima or Minima
+/- 1 => Local plateau Maxima or Minima
0 equal neigbors

See Also: GPLofmatrix , matrixdistanceofCPL , ELofmatrixneigbors , ELofmatrixneigborweight

Example Illustration

 missing image of matrixlocalminmax(M,ELtyp)

Syntax

[Min,Max,MM,EL]=matrixlocalminmax(M,[ELtyp])

Input Parameter

M: Original Matrix
ELtyp: default is 'max'

Output Parameter

Min: List of Minima
Max: List of Maxima
MM: Full minimum maximum matrix
EL: EL list containing ELtype of ELofmatrixneigborweight

Examples


[M,GPL,~,ax]=matrixdistanceofCPL(CPLsample(14),100); whos M, whos GPL, SGfigure; matrixplot(M,'',ax);
matrixlocalminmax(M); [Min,Max]=matrixlocalminmax(M)




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21