[vtkusers] Background in vtkImageReslice

mahesh mahesh at interchange.ubc.ca
Mon May 17 14:09:27 EDT 2004


Hi there,

I am using vtkImageReslice to reorient a volume (vtkImageData populated from a series of 2D images) and then retrieve slices along the newly oriented axes. Now, I'm delibrately setting the output extent of the reslice to be greater than the actual output slices' dimensions.

My problem is that the extra area surrounding the output slice is all white and I need it to be black. I tried reslice -> SetBackgroundColor(0,0,0,1) and reslice ->SetBackgroundLevel(0); both did not work. Is there any other function that can do this? Any help regarding this would be greatly appreciated.

Thanks for your time,

---
Mahesh "Max" Nagarajan




More information about the vtkusers mailing list