Resize specific dimensions of images

1 view (last 30 days)
Mar
Mar on 16 Nov 2018
Edited: KSSV on 16 Nov 2018
Hi,
I have 4D images with dimensions Data=[256,256, 36, 99]. I would like to downscale only the x- and y-dimension of this dataset (keeping the other two fix), i.e. Data = [128,128,36,99]. Can anyone help with that?

Answers (1)

KSSV
KSSV on 16 Nov 2018
Edited: KSSV on 16 Nov 2018
Read about imresize
I = rand(256,256, 36, 99) ;
I = imresize(I,[100,100]) ;

Community Treasure Hunt

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

Start Hunting!