# worldToIntrinsic

## Description

`[`

maps points from the patient coordinate system to the intrinsic coordinate system using the
spatial referencing information, `I`

,`J`

,`K`

] = worldToIntrinsic(`R`

,`X`

,`Y`

,`Z`

)`R`

. The intrinsic coordinates
`I`

, `J`

, and `K`

are defined by
axes aligned with the row, column, and slice subscripts of the image data array,
respectively. The patient coordinates `X`

, `Y`

, and
`Z`

are defined by the real-world patient coordinate system
axes.

For a point, *n*, if the input coordinates
(`X`

_{n},
`Y`

_{n},
`Z`

_{n}) fall outside the image bounds,
`worldToIntrinsic`

extrapolates
`I`

_{n},
`J`

_{n}, and
`K`

_{n} outside the image bounds in the intrinsic
coordinate system.

## Examples

## Input Arguments

## Output Arguments

## Version History

**Introduced in R2022b**