Performing opposite of repelem()

7 views (last 30 days)
Aditya kumar
Aditya kumar on 14 Jan 2022
Answered: Aditya kumar on 14 Jan 2022
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..

Accepted Answer

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

More Answers (1)

Aditya kumar
Aditya kumar on 14 Jan 2022
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!