Performing opposite of repelem()

7 次查看(过去 30 天)
I have a 'x' matrix of size 256*256 pixels. At first, using the repelem(x, 2, 2), I made it 512*512 pixels size.
Now, how can I get back my original 256*256 pixels from 512*512 pixels.
Plz help. Thank you..

采纳的回答

KSSV
KSSV 2022-1-14
Read about imresize.
iwant = A(1:2:end,1:2:end) ;

更多回答(1 个)

Aditya kumar
Aditya kumar 2022-1-14
Thank you...great ....you solved in no time....

Community Treasure Hunt

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

Start Hunting!

Translated by