[ITK] Multiple calls to GetSeriesUIDs()

Fijoy Vadakkumpadan tofijoy at gmail.com
Fri Mar 10 10:41:16 EST 2017


Thanks.

I looked through the ITK source code. Calls to GetSeriesUIDs() and
setDirectory()
are time-stamped. If the time-stamp of the latter is before that of the
former, no disk operation is done in the former. So the answer to my
question is no.

--Fijoy


On Fri, Mar 10, 2017 at 8:48 AM, Dženan Zukić <dzenanz at gmail.com> wrote:

> Hi Fijoy,
>
> here is an example to do something similar:
> https://itk.org/ITKExamples/src/IO/DICOM/DicomSeriesReadImageWrite3/
> Documentation.html
>
> Regards,
> Dženan
>
> On Thu, Mar 9, 2017 at 5:05 PM, Fijoy Vadakkumpadan <tofijoy at gmail.com>
> wrote:
>
>> Hello,
>>
>> If I call GDCMSeriesFileNames ::GetSeriesUIDs() multiple times without
>> changing the directory I'm reading via GDCMSeriesFileNames
>> ::setDirectory(), will the class regenerate the series UIDs vector in every
>> call by reading data from the directory?
>>
>> I'm asking because in my application, I'd like to retrieve all images
>> from a DICOM directory, one series at a time. Specifically, I'd like to
>> write a function which takes a GDCMSeriesFileNames object and an integer n,
>> and returns the nth series as an image. If the answer to the question above
>> is yes, then I need to store copy and store the series UID vector to avoid
>> repeated disk reads.
>>
>> Thanks,
>> --Fijoy
>>
>>
>>
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170310/b7307654/attachment.html>


More information about the Community mailing list