[Insight-users] get the total number of 2D-DICOM series..
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Jan 2 15:27:57 EST 2006
Zien wrote:
> Hi,all:
> I have a quetion about...
> How to get the total of 2D-DICOM series.
>
> If the number of slice is 50,then the total number is 50.
>
From:
http://www.itk.org/Doxygen/html/d0/de5/classitk_1_1GDCMSeriesFileNames.html
You can either use:
GDCMSeriesFileNames::GetFileNames().size()
to know how many DICOM files there is in the directory you specified
or
GDCMSeriesFileNames::GetSeriesUIDs().size()
to know how many DICOM series there is in the directory you specified
And consequently you can do:
for each uid in GDCMSeriesFileNames::GetSeriesUIDs()
GDCMSeriesFileNames::GetFileNames(uid).size()
to know the number of DICOM file separately for each Serie.
HTH
Mathieu
More information about the Insight-users
mailing list