An Edge Detection Algorithm for Attenuation Correction in Emission CT