docstr: Undistort one or more Vector2 points using the affine transform.
  
  Args:
      params: Tensor representing the affine transform parameters.
      points: Vector2 representing the points to undistort.
  
  Returns:
      Vector2 representing the undistorted points.
  
  Example:
      >>> params = Tensor([1., 2., 3., 4.])
      >>> points = Vector2.from_coords(1., 2.)
      >>> AffineTransform().undistort(params, points)
      x: -2.0
      y: -1.0
docstr_tok: ["Undistort","one","or","more","Vector2","points","using","the","affine","transform",".","Args",":","params",":","Tensor","representing","the","affine","transform","parameters",".","points",":","Vector2","representing","the","points","to","undistort",".","Returns",":","Vector2","representing","the","undistorted","points",".","Example",":",">",">",">","params","=","Tensor","(","[","1.",",","2.",",","3.",",","4",".","]",")",">",">",">","points","=","Vector2.from_coords","(","1.",",","2",".",")",">",">",">","AffineTransform","(",")",".undistort","(","params",",","points",")","x",":","-2.0","y",":","-1.0"]
code: def undistort(self, params: Tensor, points: Vector2) -> Vector2:
      """Undistort one or more Vector2 points using the affine transform.
  
      Args:
          params: Tensor representing the affine transform parameters.
          points: Vector2 representing the points to undistort.
  
      Returns:
          Vector2 representing the undistorted points.
  
      Example:
          >>> params = Tensor([1., 2., 3., 4.])
          >>> points = Vector2.from_coords(1., 2.)
          >>> AffineTransform().undistort(params, points)
          x: -2.0
          y: -1.0
      """
      fx, fy, cx, cy = (
          params[..., 0],
          params[..., 1],
          params[..., 2],
          params[..., 3],
      )
      x = (points.x - cx) / fx
      y = (points.y - cy) / fy
      return Vector2.from_coords(x, y)
  
file_path: kornia/kornia/sensors/camera/distortion_model.py
imports: from kornia.core import Tensor
  from kornia.geometry.vector import Vector2
label_desc: Use image node_id 2 for calling the AffineTransform obj's underlying member method code with example usage: obj.undistort(params, points) and returns: Vector2