Matlab Image Baseline (Offset Removal) Correction
问题 I have this plot: and want to flatten its baseline/reduce offset using Matlab. Basically like a baseline correction for a spectrum but here I've got a mesh and can't get my head around it how to flatten its baseline when dealing with a matrix? Basically the dot should stay but the surrounding is actually zero. The noise can stay, though. Here is the image: I am wondering if something like this works: for x=1:1201 for y=1:1201 Ibasetest = polyfit(x,y,1); end end Simply put do a baseline for