overlay

overlay(im1, im2, c)[source]

Overlays im2 onto im1, given voxel coords of center of im2 in im1.

Parameters
  • im1 (ND-array) – Original voxelated image

  • im2 (ND-array) – Template voxelated image

  • c (array_like) – [x, y, z] coordinates in im1 where im2 will be centered

Returns

image – A modified version of im1, with im2 overlaid at the specified location

Return type

ND-array

Examples

Click here to view online example.