Out of Memory error when resizing 3D volumes
Show older comments
I have a Lung CT volume of size 512 X 512 X 264 with a pixel spacing of 0.625 mm and a slice thickness of 1.25 mm. Each slice was displayed at a size of 2080 X 2080 on a screen. A radiologist's eyes were tracked while they scrolled through the slices in the axial view in search of a nodule. Eye positions were mapped onto a 3D array of size 2080 X 2080 X 264. Since the voxel resolution of the original Lung CT volume is 512 X 512 X (264*1.25)/0.625 = 512 X 512 X 528, and the scaling factor 2080/512 = 4.0625, the voxel resolution of the displayed volume is 2080 X 2080 X (528*4.0625) = 2080 X 2080 X 2145. When I try resizing the eye position map of size 2080 X 2080 X 264 to 2080 X 2080 X 2145 using imresize3, I run out of memory. How must I go about fixing this issue?
Accepted Answer
More Answers (1)
Jan
on 9 Dec 2022
0 votes
If the resized image is stored as uint8, you need 2080 * 2080 * 2145 = 9.28 GB of free RAM. For images in double format you need 74.2 GB already.
The direct solution is to install more RAM.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!