Reducing size of image

1 view (last 30 days)
Oah Joan
Oah Joan on 15 Oct 2018
Edited: Rena Berman on 15 Jan 2021
Well I want to write a function reducesize(imagematrix, amount) that returns a new image that is reduced in size by the given amount. In particular, it reduces the size of an image by taking only pixels every ‘amount’ pixels apart. For example, if amount=3 then the image will be one third as high and one third as wide. Can you help me?
Rena Berman
Rena Berman on 15 Jan 2021
(Answers Dev) Restored edit

Sign in to comment.

Answers (1)

KALYAN ACHARJYA on 15 Oct 2018
Edited: KALYAN ACHARJYA on 15 Oct 2018
function reduced_image=reducesize(imagematrix,amount)
[rows colm]=size(imagematrix);
reduced_image=imresize(imagematrix,[x y])


Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!