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
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