Optimal strategy for loading in many tiffs and resaving as imageJ tiff stacks
Mostrar comentarios más antiguos
Hey there,
I have some large video stored as tiff images (50,000+ frames), save in a folder as a set of individual tiff images. I want to "repackage" these folders so that they contain stacks of 500. I've started to do this using imread, but I am wondering what the fastest way(s) to do something like this are. Thanks!
1 comentario
Geoff Hayes
el 28 de Sept. de 2014
Pavlov - are you trying to create a new tiff files (of 500 frames each i.e. you've appended one image after the other using the example at Write Multiple Images to TIFF File), or just move them into separate folders of 500 files each?
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 28 de Sept. de 2014
0 votos
"some large video" is not proper grammar. Do you mean "some large videos" so that there are multiple videos, or do you mean "a large video", like there is only one?
And when you say "save in a folder", do you mean "saved in a folder"? But then the second half of that first sentence is just saying the same thing as the first half, so I'm confused. The best I can guess is that you have multiple videos that are stored not as video files (like .mpg or .avi) but saved as a sequence of individual tiff images. Presumably each sequence has some different name prefix to distinguish between the different videos.
Now define "repackage" into stacks. Do you want to have multi-page tiff images where each tiff image has 500 images (pages) in it? Why not just combine them all into a video file, like *.avi or *.mpg?
Or do you just want to copy groups of 500 files into new, uniquely named folders? If so, you don't need imread at all, all you meed is movefile().
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!