<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Verdana;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
/* Page Definitions */
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#000000 size=2>Hi, Jean, Mathieu,</FONT></DIV>
<DIV><FONT face=Verdana color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2>I downloaded GDCM CVS from <A
href="http://www.creatis.insa-lyon.fr">www.creatis.insa-lyon.fr</A> and
compiled it</FONT></DIV>
<DIV><FONT face=Verdana size=2>and use ReWrite to convert my original DICOM
generated from ITK and</FONT></DIV>
<DIV><FONT face=Verdana size=2>it can be read by XMedcon and MIPAV. Thank
you!</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>I use ITK CVS , which use GDCM 1.2.2 found in its
header, I have not </FONT></DIV>
<DIV><FONT face=Verdana size=2>revised the code, so GDCM 1.2.2 seems to have
problems when generate</FONT></DIV>
<DIV><FONT face=Verdana size=2>DICOM data? I am not sure it is due
to programming or other reason.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>As to the generated DICOM field, I have not
use</FONT></DIV>
<DIV>seriesWriter->SetImageIO( gdcm );</DIV>
<DIV>but use</DIV>
<DIV>seriesWriter->SetMetaDataDictionaryArray( <BR>
reader->GetMetaDataDictionaryArray() );</DIV>
<DIV>So the revision does not function.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana size=2>When I try to build ITK with GDCM built
separately, which failed because</FONT></DIV>
<DIV><FONT face=Verdana size=2>of AddSeriesRestriction function in
gdcmSerieHelper,</FONT></DIV>
<DIV><FONT face=Verdana size=2>In file included from
/cygdrive/j/vtk5.0/fMRIRGB2DICOM/fMRI2DICOM.cpp:7:<BR>/cygdrive/j/vtk5.0/Insight/Code/IO/itkGDCMSeriesFileNames.h:
In member function<BR> `void
itk::GDCMSeriesFileNames::AddSeriesRestriction(const
std::string&)':<BR>/cygdrive/j/vtk5.0/Insight/Code/IO/itkGDCMSeriesFileNames.h:157:
error: no<BR> matching function for call to
`gdcm::SerieHelper::AddRestriction(const<BR>
std::basic_string<char, std::char_traits<char>,
std::allocator<char>
>&)'<BR>/cygdrive/e/toolkit/gdcm/src/gdcmSerieHelper.h:119: error:
candidates are: void<BR> gdcm::SerieHelper::AddRestriction(const
gdcm::TagKey&)<BR>/cygdrive/e/toolkit/gdcm/src/gdcmSerieHelper.h:120:
error:
void<BR> gdcm::SerieHelper::AddRestriction(const gdcm::TagKey&,
const std::string&,<BR>
int)<BR>/cygdrive/e/toolkit/gdcm/src/gdcmSerieHelper.h:122:
error:
void<BR> gdcm::SerieHelper::AddRestriction(short unsigned int, short
unsigned int,<BR> const std::string&, int)</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000000 size=2>So if the GDCM version is made
compatible with ITK CVS, then the DICOM</FONT></DIV>
<DIV><FONT face=Verdana size=2>writting can be made correctly.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Finally I diff the bad and good DICOM tag
info,</FONT></DIV>
<DIV>1c1<BR>< (0002|0000) Group Length = 230<BR>---<BR>> (0002|0000) Group
Length = 228<BR>4,7c4,7<BR>< (0002|0003) Media Storage SOP Instance UID =
1.2.826.0.1.3680043.2.1143.50923884990.2006112011043311984<BR>< (0002|0010)
Transfer Syntax UID = 1.2.840.10008.1.2.1<BR>< (0002|0012) Implementation
Class UID = 1.2.826.0.1.3680043.2.1143.50923884990.2006112011043311986<BR><
(0002|0013) Implementation Version Name = ITK/GDCM 1.2.2<BR>---<BR>>
(0002|0003) Media Storage SOP Instance UID =
1.2.826.0.1.3680043.2.1143.50923884990.20061122145456843.00<BR>> (0002|0010)
Transfer Syntax UID = 1.2.840.10008.1.2<BR>> (0002|0012) Implementation Class
UID = 1.2.826.0.1.3680043.2.1143.50923884990.20061122145456843.69<BR>>
(0002|0013) Implementation Version Name = GDCM 1.3.1<BR>10,11c10,11<BR><
(0008|0012) Instance Creation Date = 20061120<BR>< (0008|0013) Instance
Creation Time = 110433<BR>---<BR>> (0008|0012) Instance Creation Date =
20061122<BR>> (0008|0013) Instance Creation Time = 145456<BR>13c13<BR><
(0008|0018) SOP Instance UID =
1.2.826.0.1.3680043.2.1125.1.50923884990.2006112011043311913<BR>---<BR>>
(0008|0018) SOP Instance UID =
1.2.826.0.1.3680043.2.1143.50923884990.20061122145456843.00<BR>103d102<BR><
(7fe0|0000) Group Length = 196620</DIV>
<DIV> </DIV>
<DIV>Maybe (0002|0000) and (7fe0|0000) difference
is important to compatibility?</DIV>
<DIV> </DIV>
<DIV>Thank you very much!</DIV>
<DIV>Fucang</DIV>
<DIV><FONT face=Verdana size=2> </DIV>
<DIV>
<HR>
</DIV></FONT>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Jean-Pierre
Roux</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG>
2006-11-21 18:57:43</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> jiafucang@asisz.com;
Mathieu Malaterre; jpr</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: [Gdcm2] Problem on
DICOM images written by ITK GDCM</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Hi, Fucang.</DIV>
<DIV> </DIV>
<DIV>On your original image (0070.dcm), xmedcon warned about "Tag with uneven</DIV>
<DIV>length" (there are a lot ...), and errored with "No Image found".</DIV>
<DIV>I don't understand this message, since Group 7FE0 exists ...</DIV>
<DIV> </DIV>
<DIV>Probabely there's a bug in the gdcm version used by your ITK ?</DIV>
<DIV>(Why do you post on gdcm2 list? I though ITK used gdcm1.2 ? Did they change?)</DIV>
<DIV> </DIV>
<DIV>I read your image, and I rewrote it with a C++ gdcm1.3.1 based program </DIV>
<DIV>(supposed to produce bug-free images)</DIV>
<DIV>Now, it's xmedcon readable (see attached image).</DIV>
<DIV> </DIV>
<DIV>Another thing I don't understand, is the values of some Dicom fields of</DIV>
<DIV>your image, that don't correspond to the ones you set in your c++ program</DIV>
<DIV>(Patient name, orientation, etc)</DIV>
<DIV> </DIV>
<DIV>-- > Mathieu.</DIV>
<DIV> </DIV>
<DIV>Do ITK still uses gdcm1.2.2, or did you make any change?</DIV>
<DIV> </DIV>
<DIV>Jean-Pierre Roux,</DIV>
<DIV>from gdcm team.</DIV>
<DIV> </DIV>
<DIV> </DIV></FONT></DIV></BODY></HTML>