get list of file names from sequence?

Home Forums Development get list of file names from sequence?

  • Frederic Marion-Poll

    A sequence can house a list of filenames describing for example a stack of images. Is it possible to get a list of the filenames stored in such a sequence?

    In the class Sequence, there is a routine called getSeries() which gives us access to the currently selected image (I guess). The only way I foresee, is to loop through the n images, using an algorithm like:

    N = getSizeT()

    for (i=0 to N) {

    setPosition(i)

    getFileName()

    }

    Is it possible to get the list of names at once?

     

    Thank you in advance for any help / suggestion,

    Fred

    Stephane Dallongeville

    Hi Frederic,

    Sorry for the late reply, you have a method specifically for that:
    Sequence.getFilename(int t, int z, int c)

    It allows you to retrieve the filename for a specific image position (when the sequence was build out of a list of file).
    Hope that helps !

    Best,

    – Stephane

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Development’ is closed to new topics and replies.