imresize() with very large files

I am trying to resize/downscale very large RGB images (86400x57600x3) by a factor of 4 (bicubic, factor 1/4) using imresize(), but I run into the 'file size limit' of the function. For smaller images, I could do each RGB layer separately and then reconstruct the image, but at this size even the 86400x57600x1 layers are too big for the function. Any way to circumvent this limit? Any clever trick I could use to end up resizing it?
Thanks.

댓글 수: 3

Matt J
Matt J 2018년 2월 2일
편집: Matt J 2018년 2월 2일
It is not clear what code you are running or which function specifically is raising the error. IMRESIZE itself has no option to operate on files.
m=imresize(m,1/4,'bicubic');
Walter Roberson
Walter Roberson 2018년 2월 3일
I just had a look at the source code, and I cannot seem to find any message about file size limits. Could you post a complete copy of the error message?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 2월 2일

0 개 추천

Possibly blockproc() and passing in the file name. However, the seams between the blocks might lead to problems.

질문:

MR
2018년 2월 2일

댓글:

2018년 2월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by