Hi, Colm-
Thanks for that suggestion/advice. I would be curious to look at your dataset-- would you be able to upload it? I'd be curious to see if there might be a way to automate this process more.
Note that 3dZeropad can take negative values (-> negative zeropadding is removing slices), so that might be a useful way to go: counting the number of slices to delete from the left boundary, from the right boundary, from the anterior boundary, etc.
But again, I would hope we could try to help navigate some of this programmatically (which may just be naive optimism on my part, of course!).
--pt