overlay#

overlay(im1, im2, c)[source]#

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

Parameters:
  • im1 (ndarray) – Original voxelated image

  • im2 (ndarray) – 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:

ndarray

Examples

Click here to view online example.