Con photoshop potresti provare: Filtro>Stilizzazione trova bordi.