How can I perform the distance transform over a large ImageData by using vtkEclideanDistance?<br><br>I'm getting bad alloc error for imagedata larger than 370^3 pixels.<br><br>Here is my current code:<br><br>vtkImageData *DistanceTransform(vtkImageData *ImageData) {<br>
vtkImageEuclideanDistance *Transform = vtkImageEuclideanDistance::New();<br> Transform -> SetInput(ImageData);<br> Transform -> ConsiderAnisotropyOff();<br> Transform -> SetAlgorithmToSaitoCached();<br>
Transform -> InitializeOn();<br> Transform -> Update();<br><br> vtkImageData *DImageData = vtkImageData::New();<br> DImageData -> DeepCopy(Transform -> GetOutput());<br> DImageData -> SetScalarTypeToDouble();<br>
DImageData -> Update();<br><br> Transform -> Delete();<br> ImageData -> Delete();<br><br> return DImageData;<br>}<br><br>Thanks,<br clear="all">Matheus Viana<br>Computational Physics<br>
IFSC-USP<br>
<br><br><div class="gmail_quote">2010/5/18 rashedk <span dir="ltr"><<a href="mailto:rashed.vtk@googlemail.com">rashed.vtk@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi all,<br>
<br>
vtkContourFilter can draw contours on a dataset, however, is it possible to<br>
label/annotate these contours? I looked at vtkLabeledDataMapper but it only<br>
seems to label points, cells, etc.<br>
<br>
Rashed.<br>
--<br>
View this message in context: <a href="http://old.nabble.com/labelling-iso-lines-tp28597889p28597889.html" target="_blank">http://old.nabble.com/labelling-iso-lines-tp28597889p28597889.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>