Clear Filters
Clear Filters

read multiple high resolution Images

1 view (last 30 days)
Rajesh Acharya
Rajesh Acharya on 21 Apr 2020
Commented: Rajesh Acharya on 22 Apr 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 Comments
Bjorn Gustavsson
Bjorn Gustavsson on 22 Apr 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

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!