code: def distort_points(self, x, normalized=True, denormalize=True):
      x = np.atleast_2d(x)
  
      # put the points into normalized camera coordinates
      if not normalized:
          x -= np.array([[self.cx, self.cy]])
          x /= np.array([[self.fx, self.fy]])
  
      # distort, if necessary
      if self.distortion_func is not None:
          x = self.distortion_func(self, x)
  
      if denormalize:
          x *= np.array([[self.fx, self.fy]])
          x += np.array([[self.cx, self.cy]])
  
      return x
  
file_path: nerfies/third_party/pycolmap/pycolmap/camera.py
imports: import numpy
  from scipy.optimize import root
label_desc: Use image node_id 12 for calling the Camera obj's underlying member method code with example usage: obj.distort_points(x, normalized, denormalize) and returns: x