AW: [Insight-users] accessing the HEADER of a DICOM file

jiang jiang at TI . Uni-Trier . DE
Fri, 12 Sep 2003 17:09:41 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C37950.A793ED20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi Evelyne,
You said your code based on itkDICOMImageSeriesTest can build a 3D volume
from a series of DICOM files...
However I tried to do the same work as you but always failed. Can you give
me your code that I can learn how to build a 3D volume from a series of
DICOM files.
Thank you very much!


Chunyan
  -----Ursprüngliche Nachricht-----
  Von: insight-users-admin at itk . org [mailto:insight-users-admin at itk . org]Im
Auftrag von Evelyne Balteau
  Gesendet: Mittwoch, 10. September 2003 16:38
  An: insight-users at itk . org
  Betreff: [Insight-users] accessing the HEADER of a DICOM file


  Hello !

  I have written a code based on the GLSliceView.h header
(InsightApplications) and
  the itkDICOMImageSeriesTest, to view slices of a 3D volume from a series
of DICOM files...
  I successfully tested it on a wide range of (magnitude) images, but I had
some problems with phase data.
  I finally found the solution : the phase data are "rescaled" by
substracting 4096 and multiplying by 2 (keeping unsigned short type) !!!
  Well...
  To write a code that could take this into account WHEN REQUIRED (for phase
but not for magnitude images), I need to access the header of the DICOM
files.
  There are two fields (RescaleIntercept=-4096 and RescaleSlope=2) in this
header giving informations on the rescaling factors.
  I could read it with matlab, but I don't know how to do with ITK...
  Is there some method to do so ??

  Thanks for any help !!

  Evelyne

------=_NextPart_000_0006_01C37950.A793ED20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D453080615-12092003>Hi=20
Evelyne,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D453080615-12092003>You=20
said your code based on itkDICOMImageSeriesTest can build a 3D volume =
from a=20
series of DICOM files...</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D453080615-12092003>However I tried to do the same work as you =
but always=20
failed. Can you give me your code that I can learn how to build a 3D =
volume from=20
a series of DICOM files.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D453080615-12092003>Thank=20
you very much!</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D453080615-12092003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D453080615-12092003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D453080615-12092003>Chunyan</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Urspr=FCngliche Nachricht-----<BR><B>Von:</B>=20
  insight-users-admin at itk . org [mailto:insight-users-admin at itk . org]<B>Im =
Auftrag=20
  von </B>Evelyne Balteau<BR><B>Gesendet:</B> Mittwoch, 10. September =
2003=20
  16:38<BR><B>An:</B> insight-users at itk . org<BR><B>Betreff:</B> =
[Insight-users]=20
  accessing the HEADER of a DICOM file<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Hello !</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have written a code based on the =
GLSliceView.h=20
  header (InsightApplications) and </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>the itkDICOMImageSeriesTest, to view =
slices of a=20
  3D volume from a series of DICOM files...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I successfully tested it on a wide =
range of=20
  (magnitude) images, but I had some problems with phase =
data.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I finally found the solution : the =
phase data are=20
  "rescaled" by substracting 4096 and multiplying by 2 (keeping unsigned =
short=20
  type) !!!</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Well...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>To write a code that could take this =
into account=20
  WHEN REQUIRED (for phase but not for magnitude images), I need to =
access the=20
  header of the DICOM files.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>There are two fields =
(RescaleIntercept=3D-4096 and=20
  RescaleSlope=3D2) in this header giving informations on the rescaling=20
  factors.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I could read it with matlab, but I =
don't know how=20
  to do with ITK...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Is there some method to do so =
??</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for any help !!</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2>Evelyne</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0006_01C37950.A793ED20--