https://kr.mathworks.com/help/images/ref/imdiffuseest.html
imdiffuseest - Estimate parameters for anisotropic diffusion filtering - MATLAB
This MATLAB function estimates the gradient threshold and number of iterations required to filter the grayscale image I using anisotropic diffusion.
estimateparametersanisotropicdiffusionfiltering