Text this: Lightweight error-tolerant edge detection using memristor-enabled stochastic computing