This task has been extensively tested against the count rates returned by the XMM pipeline source search and parameterisation tasks. The results are consistent apart from a small variation due to the EXTENDED mode PSF used here. The pipeline task emldetect uses the MEDIUM mode PSF.