I have a DICOM volume that was acquired in a double-oblique orientation on the scanner. After reading the DICOM using vtkDICOMImageReader, I pipe the volume through vtkImageReslice, then use the DICOM image attributes to apply an affine transformation matrix to the reslice filter. This nicely reslices my volume in an axial orientation. All good. BUT! vtkImageReslice seems to “fill the background” of the reformatted volume with zeros. This is not good. I would like the “background” voxels to be transparent.
I found a couple of old @dgobbi posts where he suggests running the DICOM data through a vtkImageMapToColors filter before piping it to the reslicer. But I’m afraid I do not understand how to do this.
Can anyone help?