Guest User

Untitled

a guest
Nov 13th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. block = [32, 32, 16]
  2. img = imageio.volread('path\to\tiff\file')
  3. x, y, z = 191, 303, 17
  4. img_block = img_block[x - int(block[0] / 2):x + int(block[0] / 2),
  5. y - int(block[1] / 2):y + int(block[1] / 2),
  6. z - int(block[2] / 2):z + int(block[2] / 2)]
Add Comment
Please, Sign In to add comment