An edge detection algorithm for use in radionuclide imaging