Find minimum and maximum intensities.