<html><div style='background-color:'><DIV class=RTE>Hi,</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I'm new to VTK, and have the following questions:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I have a text file with just integers, where each integer corresponds to a region #, a given pixel of an image belongs to.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>For example, if my text file contains 1 2 3 4, this corresponds to a 4-pixel image where each pixel of the image belongs to a region 1, 2 ,3 ,4 respectively.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Now, how do I read such data in VTK?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>And if I have the pixel coordinates (x, y), and the region number I read in from the text file, how do I plot this visually?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I'll appreciate any help and pointers.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Thanks,</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Vidya</DIV>
<DIV class=RTE>&nbsp;</DIV></div><br clear=all><hr>Drive away out of trouble. <a href="http://g.msn.com/8HMAENIN/2749??PS=47575">Get a loan against your existing car.</a> </html>