I was in Mumbai in our Powai campus, on 26th November 2008, preparing for my B.Tech project presentation. I was following the online news of the Pakistani terrorist attack on the Taj, Trident, CST, Chabad House at Nariman Point, Madam Cama Hospital, Leopold Cafe–pretty much all the places that make Mumbai Mumbai. I remember being slightly concerned and only mildly frustrated by it. I had been more or less desensitized to Islamic terrorist attacks in India and the consequent loss of innocent lives. There had been a rash of Islamist terrorist bomb attacks in India in the first decade of 2000s and somehow we seem to have had normalized them. In 2006, I was at home for summer break when multiple bombs exploded in the Western Railway suburban local train in Mumbai, killing 209(!) & injuring 700 and more. I used to take that local quite often from Dadar to Churchgate when going to South Mumbai. As I recall, even then my reaction was rather phlegmatic. “This shit just happens and we Indians just have to live with it” was the prevailing societal–and probably even my own–attitude.
SimpleITK has a fantastic python API for medical image processing, but it has a steep learning curve. In this post I will document how to resample images using the Resample filter via the complicated, but really useful task of extracting oblique slices in a 3D image. If you imagine a 3D image as a cube then an oblique slice is formed by sampling the image on a plane that has an arbitrary normal and does not align with the canonical axial, sagittal, coronal planes (see Fig. 1).