<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT size=2>
<P>Hi all,</P>
<P>vtkDICOMImageReader does not give the Image Orientation, but only the
image position.</P>
<P>Is that right? If so, DICOMAppHelper::ImagePositionPatientCallback is
already implemented, so this</P>
<P>would be a nice feature to add.</P>
<P>Also, when reading a stack of slices, GetPixelSpacing() does like this: </P>
<P>if (sortedFiles.size() > 1)<BR> {<BR>
vtkstd::pair<float, vtkstd::string> p1 =
sortedFiles[0];<BR> vtkstd::pair<float, vtkstd::string>
p2 = sortedFiles[1];<BR> this->DataSpacing[2] =
fabs(p1.first - p2.first);<BR> }<BR>
else<BR> {<BR> this->DataSpacing[2] =
spacing[2];<BR> } </P>
<P>Why?</P>
<P><FONT size=1><FONT size=2>Best,</FONT></FONT></P>
<P><FONT size=1><FONT
size=2>Sebastian</FONT></P></FONT></FONT></FONT></DIV></BODY></HTML>