code: def binary_thin(image, strel1, strel2):
      
      hit_or_miss = scind.binary_hit_or_miss(image, strel1, strel2)
      return np.logical_and(image,np.logical_not(hit_or_miss))
docs: Morphologically thin an image
      strel1 - the required values of the pixels in order to survive
      strel2 - at each pixel, the complement of strel1 if we care about the value