<div id="RTEContent"> Hi all<br> <br> i've write an application that read Cardiac Image Dicom files (Time series image), but i can only visualize the first image in the file.<br> Each series (study) contains 8 Dicom file, each Dicom file contains multi 2D Cardiac Image (between 1 to 40 image stored in the same Dicom file).<br> I read the Dicom file with the itk::GDCMImageIO, and visualize it in VTK, but i visualize only the first image, i didn't know how to do to browse within all the 2D image.<br> this is a fragment of the code:<br> <br> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="Generator" content="Kate, the KDE Advanced Text Editor"> <pre> // read the Dicom Directory (contains many Dicom files)<span style="color: rgb(128, 0, 0);"><br> char</span>* chooserName = fl_dir_chooser(<span style="color: rgb(221, 0, 0);">"select a dicom directory"</span>, <span style="color: rgb(0, 0, 255);">0</span>, <span
style="color: rgb(0, 0, 255);">0</span>);<br><br> <span style="color: rgb(128, 128, 128);"><i>// Store the filename</i></span><br> strcpy( m_InputImageDirectoryname, chooserName );<br> reader = ReaderType::New();<br> dicomIO = ImageIOType::New();<br> dicomIO->SetMaxSizeLoadEntry(<span style="color: rgb(0, 128, 128);">0xffff</span>);<br> nameGenerator = NamesGeneratorType::New();<br> reader->SetImageIO( dicomIO );<br> nameGenerator->SetUseSeriesDetails( <b>true</b> );<br> nameGenerator->SetDirectory( m_InputImageDirectoryname );<br><br> seriesUID = nameGenerator->GetSeriesUIDs();<br> //we take the first series we find in the directory<br> seriesIdentifier = seriesUID.begin()->c_str();<br> <br> fileNames = nameGenerator->GetFileNames( seriesIdentifier );<br> <br> //we will count the number of Dicom file that belongs to that serie<br> FileNamesBegin = fileNames.begin();<br> FileNamesItr = fileNames.end();<br> FileNamesEnd =
fileNames.end();<br> <br> ListCardinal=<span style="color: rgb(0, 0, 255);">0</span>;<br> ListPosition=<span style="color: rgb(0, 0, 255);">1</span>;<br> <b>while</b>( FileNamesItr != FileNamesBegin )<br> {<br> ListCardinal++;<br> FileNamesItr--;<br> }<br> rescaler = RescaleFilterType::New();<br> rescaler->SetOutputMinimum( <span style="color: rgb(0, 0, 255);">0</span> );<br> rescaler->SetOutputMaximum( <span style="color: rgb(0, 0, 255);">255</span> );<br> reader->SetFileName( FileNamesItr->c_str() );<br><br> <b>try</b><br> {<br> rescaler->SetInput( reader->GetOutput() );<br> reader->Update();<br> m_InputImage = reader->GetOutput();<br> m_InputImage->SetRequestedRegionToLargestPossibleRegion();<br> <br> <span style="color: rgb(128, 128, 128);"><i>// Create the ITK pipeline (NB: pipeline not yet executed)</i></span><br> <b>this</b>->CreateITKPipeline();<br><br> <span style="color: rgb(128, 128,
128);"><i>// Create the input image VTK pipeline</i></span><br> <b>this</b>->CreateInputImageWindow();<br></pre><br> <br> any comment will be welcome <br> thx<br> Amir<br> </div><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.