<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
i find the value of SetDataSpacing is not used when read the 2D CT images using vtkImageReader2, but i want to read 2D CT images as 3D according to value of SetDataSpacing in order to extract a interpolated slice in desired orientation. i wonder it can be implemented? i will appreciate any answer from you. thank you.<BR>
<BR>
some program of the example is as follows:<BR>
vtkImageReader2 *reader = vtkImageReader2::New();<BR> reader->SetFilePrefix(argv[1]);<BR> reader->SetDataExtent(0, 63, 0, 63, 1, 93);<BR> reader->SetDataSpacing(3.2, 3.2, 1.5);<BR> reader->SetDataOrigin(0.0, 0.0, 0.0);<BR> reader->SetDataScalarTypeToUnsignedShort();<BR> reader->UpdateWholeExtent();<BR>
<BR>
<BR>
<BR> </body>
</html>