Detects and maintains, in full resolution, high-information portions of an image; and sets low-information portions to the mean local background color/value.
NOTE: You may use a lossless compression algorithm (imwrite) to save the simplified output of selectivelySimplify to keep the high-energy portions pristine (lossless), and the low-energy portions lossy. This can provide more efficient (selectively lossy) image compression.
Brett Shoelson (2019). selectivelySimplify (https://www.mathworks.com/matlabcentral/fileexchange/67642-selectivelysimplify), MATLAB Central File Exchange. Retrieved .
10/31/18 Minor bug fix; added screen shot.