<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Are there any functions to do trilinear interpolation of raw dataset<BR>? I checked<BR>vtkMath, which I thought might be the logical place, but doesnt seem to<BR>be part of it. I am looking<BR>for a function, given a set of points (2 3d) to return the<BR>interpolated value at a given point (x,y,z)</DIV>
<DIV> </DIV>
<DIV>I read the raw dataset with vtkImageReader . Then which classes should I use to do trilinear interpolation on a specific points(x,yz)?</DIV>
<DIV><FONT size=2>
<P>vtkImageReader *readraw = vtkImageReader::New();</P>
<P>readraw->SetFileDimensionality(3);</P>
<P>readraw->SetFilePrefix(</FONT><FONT color=#800000 size=2>"3Draw_dataset");</FONT><FONT size=2></P>
<P>readraw->SetFilePattern(</FONT><FONT color=#800000 size=2>"%s%.d.raw"</FONT><FONT size=2>);</P>
<P>readraw->SetDataByteOrderToBigEndian();</P>
<P>readraw->SetDataExtent (0,250,0,300,0,120);</P>
<P>readraw->SetDataScalarTypeToUnsignedChar();</P>
<P>readraw->SetDataOrigin(0,0,0); </P>
<P>readraw->SetDataSpacing(0.2,0.2,0.2);</FONT><FONT color=#008000 size=2>// necessary to see Raw data on 3D </P></FONT><FONT size=2>
<P>readraw->SetDataMask(0x7ff);</P>
<P>readraw->Update();</P></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>thanks </DIV>
<DIV>Tony<BR><BR></DIV></div><br>
<hr size=1>No need to miss a message. <a href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail
">Get email on-the-go </a><br>with Yahoo! Mail for Mobile. <a href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail
">Get started.</a></body></html>