Neuromorphic object localization using resistive memories and ultrasonic transducers