<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=682593412-05102009>Hello ITK users
group,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=682593412-05102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=682593412-05102009>I am trying to read
(and display) DICOM RT Structure Sets. On <A
href="http://www.insight-journal.org/browse/publication/316">http://www.insight-journal.org/browse/publication/316</A> I
found a nice hint in the review section of Charles Wang. I tried to implement it
with the following code:</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=682593412-05102009></SPAN></FONT> </DIV>
<DIV><SPAN class=682593412-05102009>
<P><FONT size=2 face=Arial>vtkGDCMPolyDataReader * PolyReader =
vtkGDCMPolyDataReader::New();</FONT></P>
<P><FONT size=2 face=Arial></FONT></P>
<P><FONT size=2 face=Arial>PolyReader->SetFileName( argv[<SPAN
class=682593412-05102009>1</SPAN>] );</FONT></P>
<P><FONT size=2 face=Arial>PolyReader->Update();</FONT></P>
<P><FONT color=#008000><FONT color=#008000><FONT size=2
face=Arial>//PolyReader->Print(std::cerr);</FONT></P></FONT></FONT><FONT
size=2 face=Arial>
<P>vtkPolyData * polyData = PolyReader->GetOutput();</P>
<P> </P></FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=682593412-05102009>But when I look at
the object polyData I only see strange results:</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=682593412-05102009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=682593412-05102009></SPAN></FONT> </DIV>
<DIV><SPAN class=682593412-05102009><FONT color=#008000><FONT color=#008000>
<P><FONT color=#000000 size=2 face=Arial>int a =
polyData->GetNumberOfCells();//1</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>int b =
polyData->GetNumberOfLines();//0</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>int c =
polyData->GetNumberOfPieces();//1</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>int d =
polyData->GetNumberOfPoints();//1</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>int e =
polyData->GetNumberOfPolys();//1</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>int f =
polyData->GetNumberOfStrips();//0</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>int g =
polyData->GetNumberOfVerts();//0</FONT></P>
<P><FONT color=#000000 size=2 face=Arial></FONT> </P>
<P><FONT color=#000000 size=2 face=Arial><SPAN class=682593412-05102009>For
sure, also the displaying of those object fails. So I think that the reader
stops after the first point reading, does anybody (maybe Charles Wang) know how
to read those RT Structure Sets without modifying the PolyReader object and
without writing a new parser? Would be very great, special thanks to all
helpers!</SPAN></FONT></P>
<P><FONT color=#000000 size=2 face=Arial><SPAN class=682593412-05102009>Best
regards,</SPAN></FONT></P>
<P><FONT color=#000000 size=2 face=Arial><SPAN
class=682593412-05102009></SPAN></FONT></FONT></FONT></SPAN><SPAN
lang=en-gb><FONT color=#000080><FONT face=Arial><FONT size=2><SPAN
class=682593412-05102009><FONT color=#000000>Gerald
Lodron</FONT></SPAN></FONT></FONT></FONT></SPAN></P></DIV></BODY></HTML>