Neural network edge detector approach