How do I threshold an image to find the local maxes in a robust way? I know I can just look at the data, visually guess at some appropriate h value, and do imextendedmax(I,h) where h is the threshold... but I'm looking for a more robust way to do it in Matlab. I'm pretty new to Matlab and coding so this is all foreign...
Update
No, I'd still need to do thresholding because of a noisy background (still somewhat noisy even after I filter it). imregionalmax() would give way more local maxes therefore than I need.