[vtkusers] 3D .raw data density values
tony hakki
tony2007vtk at yahoo.com
Tue Mar 13 05:12:38 EDT 2007
hi;
Michael you were right,vtkProbefilter is suitable way to get point at a certain point. You mentioned that "the output depends on what interpolation type you choose (linear/cubic..)." how can I specified interpolation type,I would like to use trilinear interpolation type? Could you give a sample code to understand vtkprobefilter using structure? If someone can add something from their knowledge it will be appreciated too.
thanks in advance
Tony
----- Original Message ----
From: Michael Knopke <Michael.Knopke at gmx.de>
To: vtkusers at vtk.org
Sent: Tuesday, March 6, 2007 2:43:56 PM
Subject: [vtkusers] 3D .raw data density values
Hi Tony,
Im not sure if this is alright, so use with care J
If your dataset is vtkImageData (I guess so) then you can use:
vtkImageData->FindPoint(double x[3]); //where x is in worldspace coordinates
But this will only find the closest point belonging to your original dataset. So if you select a point in worldspace that has no direct association to a point in imagedata, the value is not correct.
Data in between needs to be interpolated. A way to get the interpolated point at a certain position is to use the vtkProbeFilter with your imagedata. But the output depends on what interpolation type you choose (linear/cubic..).
Please correct me If Im wrong.
Regards
Michael
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070313/92c5c939/attachment.htm>
More information about the vtkusers
mailing list