code: def get_pixel_distance(self, x1, y1, x2, y2):
          
          dx = abs(x2 - x1)
          dy = abs(y2 - y1)
          dist = np.sqrt(dx * dx + dy * dy)
          dist = np.round(dist)
          return dist
docs: Calculate distance between the given pixel positions.
  
          Parameters
          ----------
          x1, y1, x2, y2 : number
              Pixel coordinates.
  
          Returns
          -------
          dist : float
              Rounded distance.