[vtkusers] get transformed data after transforming vtkImageReslice or vtkVolume

Tanya S tanya_lll at yahoo.com
Tue May 31 00:51:29 EDT 2005


Dear all,
 
I transform vtkImageReslice and vtkVolume, and display the result.
It works.
Then, I need to get the transformed dataset and save the transformed data to an
Analyze file using ITK trhrough vtkImageExport.

I try to get the data from vtkImageReslice->GetInput, but this will give me the vtkImageData
before transformation. I thought the Update() method will update the data up to the pipeline.
If I get the data from vtkImageReslice->GetOutput() then of course I get the transformed data
but only contain one slice. Other slice is only contain black images.

My pipeline for the vtkImageReslice is:
vtkImageData->vtkImageChangeInformation->vtkImageReslice
I transform the image by calling vtkImageReslice->SetResliceTransform()
 
My pipeline for the vtkVolume:
vtkImageData->vtkImageCast->vtkVolumeRayCastMapper
then call vtkVolume->SetMapper(vtkVolumeRayCastMapper)
I transform the volume by calling vtkVolume->SetUserTransform()  
 
How to get the transformed vtkImagedata after transforming vtkvolume or vtkImageReslice?
Should I re-construct a volume from the transformed slices? But how?
Or should I produce vtkImageData from vtkVolume? But how?
 
Any help would be really appreciated.
 
 
Best regards,
.Tanya.

		
---------------------------------
Do You Yahoo!?
 Yahoo! Small Business - Try our new Resources site!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050530/0c7b87cf/attachment.htm>


More information about the vtkusers mailing list