compute SNR in the region of interest.