cyjax.index_hom_to_affine#

cyjax.index_hom_to_affine(patch, hom_index)#

Convert homogeneous index to (local) affine index in given patch.

Parameters:
  • patch (int) – Affine patch, i.e. index of homogeneous coordinate scaled to 1.

  • hom_index (int) – Index in array of homogeneous coordinates.

Return type:

int

Returns:

Index in array of homogeneous coordinates corresponding hom_index.