Down Sample Image by Deleting Alternating Rows & Columns
Show older comments
I am trying to down sample an image to 1/4 and 1/16 its original size, and the instructions are to "use simple decimation to remove every other row and column to do so".
I have been reading through the MATLAB documentation for imresize, downsample, and decimate, as well as various threads here and on other sites, and I cannot seem to figure out how to implement this task?
I = imread('filename');
J = downsample(I,4);
which gives me the correct resize vertically but doesn't change the horizontal dimension. How do I apply this downsample to both rows AND columns?
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic 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!