Automatic Multiscale-based Peak Detection (AMPD)