mask edges; merge SourceExtractor sources, and find unique SED-match detection peaks