conversion of image into 8 x 8 matrix

I have one image file.
Then how to convert image into 8 x 8 matrix and 16 x 16 matrix

 Accepted Answer

Assuming you have gray scale image, say I, for 8x8
result_image=imresize(I,[8 8])
and for 4x4
result_image=imresize(I,[4 4])
If you are talking about sliding window, look here

More Answers (0)

Categories

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!