<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=GB2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16476"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=宋体><SPAN
class=841280207-17052013>Please send me your raycasting part source
code.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=宋体><SPAN
class=841280207-17052013>I have read your test data, and i confirm that it is 3D
data.</SPAN></FONT></DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=zh-cn class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> liff [mailto:floria@tju.edu.cn]
<BR><B>Sent:</B> Friday, May 17, 2013 2:15 PM<BR><B>To:</B> Hongsongyang;
vtkusers@vtk.org<BR><B>Subject:</B> Re: [vtkusers] Questions to render seismic
data by volume render method<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=moz-cite-prefix>Hello, Hongsongyang!<BR>Thank you for
answering.<BR> 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.<BR> 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. <BR> My method to read the data is as
following:<BR><BR>
vtkSmartPointer<vtkImageReader2>reader =
vtkSmartPointer<vtkImageReader2>::New();<BR>
reader->SetFileName("part_100_100.dat");<BR>
reader->SetDataExtent(0,100,0,100,0,201);<BR>
reader->SetDataScalarTypeToFloat();<BR>
reader->SetDataByteOrderToLittleEndian();<BR>
reader->UpdateWholeExtent();<BR><BR>And the seismic test data can be seen
in the attachment.<BR>Thank you a lot!<BR>---<BR>Feifei Li
@nscc<BR> <BR><BR>于 2013年05月15日 17:30, Hongsongyang 写道:<BR></DIV>
<BLOCKQUOTE cite=mid:EE512C0363AD44EE9BA9006F954919A5@WlfPC type="cite">
<STYLE type=text/css>UNKNOWN {
        cke_protected:
}
UNKNOWN {
        C:
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16476">
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=宋体><SPAN
class=761541809-15052013>1, Different data has different scale value. And
you should set different scale value for different opacty
value.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=宋体><SPAN
class=761541809-15052013>2, In my understanding, ray casting could deal with
all kinds of data no matter they are unsigned char or unsigned
short.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=宋体><SPAN
class=761541809-15052013>If you have any problem, you could share some of
your test data, if it is not confidential.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=宋体><SPAN
class=761541809-15052013></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=zh-cn class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> <A class=moz-txt-link-abbreviated
href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</A> [<A
class=moz-txt-link-freetext
href="mailto:vtkusers-bounces@vtk.org">mailto:vtkusers-bounces@vtk.org</A>]
<B>On Behalf Of </B>李菲菲<BR><B>Sent:</B> Wednesday, May 15, 2013 4:22
PM<BR><B>To:</B> <A class=moz-txt-link-abbreviated
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A><BR><B>Subject:</B>
[vtkusers] Questions to render seismic data by volume render
method<BR></FONT><BR></DIV>
<P style="MARGIN-BOTTOM: 0cm"><SPAN style="FONT-SIZE: 16px"><FONT
face="Liberation Serif, serif"><SPAN style="FONT-WEIGHT: normal">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: </SPAN></FONT></SPAN></P>
<P style="MARGIN-BOTTOM: 0cm"><SPAN style="FONT-SIZE: 16px"><FONT
face="Liberation Serif, serif"><SPAN style="FONT-WEIGHT: normal">1 How to
choose the points to set opacity and color ? </SPAN></FONT></SPAN></P>
<P style="MARGIN-BOTTOM: 0cm"><SPAN style="FONT-SIZE: 16px"><FONT
face="Liberation Serif, serif"><SPAN style="FONT-WEIGHT: normal">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?</SPAN></FONT></SPAN></P>
<P style="MARGIN-BOTTOM: 0cm"> </P>
<P style="MARGIN-BOTTOM: 0cm"><SPAN style="FONT-SIZE: 16px"><FONT
face="Liberation Serif, serif"><SPAN style="FONT-WEIGHT: normal">Many
thanks,</SPAN></FONT></SPAN></P>
<P style="MARGIN-BOTTOM: 0cm"><SPAN style="FONT-SIZE: 16px"><FONT
face="Liberation Serif, serif"><SPAN style="FONT-WEIGHT: normal">Feifei Li
@nscc-tj</SPAN></FONT></SPAN></P>
<P
style="MARGIN-BOTTOM: 0cm"> </P></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>