read multiple high resolution Images

1 vue (au cours des 30 derniers jours)
Rajesh Acharya
Rajesh Acharya le 21 Avr 2020
Commenté : Rajesh Acharya le 22 Avr 2020
Hi,
I have a set of 400 images of 1024 x 1024 resolution. I want to open each of the 400 images and extract a perticular row of each image and form a new image out of this. So the resulting number of images will be 1024 each of size 400 x 1024. I need to save these 1024 images separately.
I am able to do this but it is taking more time. I am running a for loop to read/load images from directory one by one, shredding them into a variable of size 1024 x 400 x 1024 size variable. Then running another for loop to save these images.
My question: Is there any better/faster way of doing this (like cell arrays etc or otherwise). Currently it is taking about 80 sec. (intel i-3, win10, r17a).
  7 commentaires
Bjorn Gustavsson
Bjorn Gustavsson le 22 Avr 2020
My bad missing that line.
sinogram becomes a rather large variable. I encountered similar slowing-downs when some 3-D arrays started to grow. This might be a memmory-issue.
If this becomes "punitively slow" you might have to resort to extracting sinograms from the first half then the second half of your files, and then concateneat the first-half and second-half sinogram-slices together file-by-file. This is an uggly-uggly thing to have to do, but might save you time.
HTH
Rajesh Acharya
Rajesh Acharya le 22 Avr 2020
thanks

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by