How can I perform the distance transform over a large ImageData by using vtkEclideanDistance?<br><br>I&#39;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 -&gt; SetInput(ImageData);<br>        Transform -&gt; ConsiderAnisotropyOff();<br>        Transform -&gt; SetAlgorithmToSaitoCached();<br>
        Transform -&gt; InitializeOn();<br>        Transform -&gt; Update();<br><br>        vtkImageData *DImageData = vtkImageData::New();<br>        DImageData -&gt; DeepCopy(Transform -&gt; GetOutput());<br>        DImageData -&gt; SetScalarTypeToDouble();<br>
        DImageData -&gt; Update();<br><br>        Transform -&gt; Delete();<br>        ImageData -&gt; 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">&lt;<a href="mailto:rashed.vtk@googlemail.com">rashed.vtk@googlemail.com</a>&gt;</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>