<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7655.5">
<TITLE>How to separate real CT volume from scout</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi itk users,<BR>
<BR>
I use itk ImageSeriesReader to read dicom images, the set up is pretty simple.<BR>
But I find out that the reader only takes in the scout image of CT, not the real volume.<BR>
And it shows only 1 file in the dicom directory.<BR>
<BR>
Below is my code. Can anyone help me to set up the reader to read in the real volume?<BR>
<BR>
I am sure the directory has both the scout and volume images.<BR>
<BR>
<BR>
//read the input series<BR>
ImageIOType::Pointer gdcmIO = ImageIOType::New();<BR>
InputNamesGeneratorType::Pointer inputNames = InputNamesGeneratorType::New();<BR>
inputNames->SetInputDirectory(argv[1]);<BR>
<BR>
const ReaderType::FileNamesContainer & filenames =<BR>
inputNames->GetInputFileNames();<BR>
<BR>
//print out file names<BR>
unsigned int numberOfFilenames = filenames.size();<BR>
std::cout<<"there are "<<numberOfFilenames<<" files in the dir."<<std::endl;<BR>
ReaderType::Pointer reader = ReaderType::New();<BR>
reader->SetImageIO(gdcmIO);<BR>
reader->SetFileNames(filenames);<BR>
reader->Update();<BR>
<BR>
Thank you in advance.<BR>
Wen<BR>
<BR>
Postdoctoral Fellow<BR>
Bioengineering, Sheikh Zayed Institute<BR>
Children's National Medical Center<BR>
111 Michigan Ave. NW<BR>
Washington DC, 20010<BR>
Email: wli@cnmc.org<BR>
Phone: 202-476-1268<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>