[vtkusers] Questions to render seismic data by volume render method
Hongsongyang
hongsongyang at 163.com
Fri May 17 03:03:32 EDT 2013
Please send me your raycasting part source code.
I have read your test data, and i confirm that it is 3D data.
_____
From: liff [mailto:floria at tju.edu.cn]
Sent: Friday, May 17, 2013 2:15 PM
To: Hongsongyang; vtkusers at vtk.org
Subject: Re: [vtkusers] Questions to render seismic data by volume render
method
Hello, Hongsongyang!
Thank you for answering.
I've found a method to solve the data type problem, that is to use the
vtkImageShiftScale to transform the float data to the unsigned short ones.
But now I've another problem. I wonder how to know whether I've read in
the 3D data successfully, because my result of volumetric ray casting seems
like not 3D data and the all images in z-axis looks like the same one.
My method to read the data is as following:
vtkSmartPointer<vtkImageReader2>reader =
vtkSmartPointer<vtkImageReader2>::New();
reader->SetFileName("part_100_100.dat");
reader->SetDataExtent(0,100,0,100,0,201);
reader->SetDataScalarTypeToFloat();
reader->SetDataByteOrderToLittleEndian();
reader->UpdateWholeExtent();
And the seismic test data can be seen in the attachment.
Thank you a lot!
---
Feifei Li @nscc
于 2013年05月15日 17:30, Hongsongyang 写道:
1, Different data has different scale value. And you should set different
scale value for different opacty value.
2, In my understanding, ray casting could deal with all kinds of data no
matter they are unsigned char or unsigned short.
If you have any problem, you could share some of your test data, if it is
not confidential.
_____
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of 李菲菲
Sent: Wednesday, May 15, 2013 4:22 PM
To: vtkusers at vtk.org
Subject: [vtkusers] Questions to render seismic data by volume render method
I'm trying to render a 3D seismic data by volumetric ray casting. The data
is stored in binary, and the data type is float. I read in the data with the
class of vtkImageData2 and the dimension of the data is 100x100x201. There
are two questions:
1 How to choose the points to set opacity and color ?
2 As vtkVolumeRayCastMapper can only deal with unsigned char or unsigned
short , but the data read in is float. How to deal with this problem?
Many thanks,
Feifei Li @nscc-tj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130517/e1ba3356/attachment.htm>
More information about the vtkusers
mailing list