<!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 dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009>First of all: Thanks for the fast
reply.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009>I changed those settings and recompiled, but the
changes did not effect the result. I debugged it and I never come to the
continue statement listed in the change log of your
link.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009>During the debugging I found following
out:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009>The vtkGDCMPolyDataReader correctly reads more
than one point from the file (line 367-369) but the update must fail. Maybe
it is in the ptId variable on line 370? This variable is 0 every loop I run.
Or is the error in the npts variable of the for loop on line
364 because this variable is 1 all time, the only real loop I go
throug is those on line 272. Should i send you my dicom file?
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009>Best regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=068223313-05102009></SPAN></FONT> </DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> insight-users-bounces@itk.org
[mailto:insight-users-bounces@itk.org] <B>Im Auftrag von </B>Lodron,
Gerald<BR><B>Gesendet:</B> Montag, 05. Oktober 2009 14:45<BR><B>An:</B> Insight
users (insight-users@itk.org)<BR><B>Betreff:</B> [Insight-users] Reading
DICOM-RT with vtkGDCMPolyDataReader as supposed by Charles
Wang<BR></FONT><BR></DIV>
<DIV></DIV>
<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>