class_docstr: A single keypoint (aka landmark) on an image.
  
  Parameters
  ----------
  x : number
      Coordinate of the keypoint on the x axis.
  
  y : number
      Coordinate of the keypoint on the y axis.
class_docstr_tok: ["A","single","keypoint","(","aka","landmark",")","on","an","image",".","Parameters","--","--","--","--","--","x",":","number","Coordinate","of","the","keypoint","on","the","x","axis",".","y",":","number","Coordinate","of","the","keypoint","on","the","y","axis","."]
docstr: Project the keypoint onto a new position on a new image.
  
  E.g. if the keypoint is on its original image
  at ``x=(10 of 100 pixels)`` and ``y=(20 of 100 pixels)`` and is
  projected onto a new image with size ``(width=200, height=200)``, its
  new position will be ``(20, 40)``.
  
  This is intended for cases where the original image is resized.
  It cannot be used for more complex changes (e.g. padding, cropping).
  
  Parameters
  ----------
  from_shape : tuple of int
      Shape of the original image. (Before resize.)
  
  to_shape : tuple of int
      Shape of the new image. (After resize.)
  
  Returns
  -------
  imgaug.augmentables.kps.Keypoint
      Keypoint object with new coordinates.
docstr_tok: ["Project","the","keypoint","onto","a","new","position","on","a","new","image",".","E.g",".","if","the","keypoint","is","on","its","original","image","at","``","x=","(","10","of","100","pixels",")","``","and","``","y=","(","20","of","100","pixels",")","``","and","is","projected","onto","a","new","image","with","size","``","(","width=200",",","height=200",")","``",",","its","new","position","will","be","``","(","20",",","40",")","``",".","This","is","intended","for","cases","where","the","original","image","is","resized",".","It","can","not","be","used","for","more","complex","changes","(","e.g",".","padding",",","cropping",")",".","Parameters","--","--","--","--","--","from_shape",":","tuple","of","int","Shape","of","the","original","image",".","(","Before","resize",".",")","to_shape",":","tuple","of","int","Shape","of","the","new","image",".","(","After","resize",".",")","Returns","--","--","--","-","imgaug.augmentables.kps.Keypoint","Keypoint","object","with","new","coordinates","."]
code: def project(self, from_shape, to_shape):
      """Project the keypoint onto a new position on a new image.
  
      E.g. if the keypoint is on its original image
      at ``x=(10 of 100 pixels)`` and ``y=(20 of 100 pixels)`` and is
      projected onto a new image with size ``(width=200, height=200)``, its
      new position will be ``(20, 40)``.
  
      This is intended for cases where the original image is resized.
      It cannot be used for more complex changes (e.g. padding, cropping).
  
      Parameters
      ----------
      from_shape : tuple of int
          Shape of the original image. (Before resize.)
  
      to_shape : tuple of int
          Shape of the new image. (After resize.)
  
      Returns
      -------
      imgaug.augmentables.kps.Keypoint
          Keypoint object with new coordinates.
  
      """
      return self.deepcopy().project_(from_shape, to_shape)
  
imports: from __future__ import print_function, division, absolute_import
  import numpy
  import scipy.spatial.distance
  import six.moves
  from ..None import imgaug
  from .base import IAugmentable
  from .utils import normalize_imglike_shape, project_coords, _remove_out_of_image_fraction_, _handle_on_image_shape
label_desc: Use image node_id 8 for calling the Keypoint obj's underlying member method code with example usage: obj.project(from_shape, to_shape) and returns: self