0

hello everyone,
I want to divide an image into blocks using Matlab.how to divide it by Matlab?
I tried following code but its not working.
I=imread('ab.jpg');
block = mat2cell(I, [60 60 60 60 60 60 60 60 60 60], [80 80 80 80 80 80 80 80 80 80],3);
imshow(I);
can anyone plz suggest me code for the same.I want to divide an image into blocks of size say for example 8x8 irrespective of image resolution.Above code is for image size 800x400.Code must work for any resolution....plzzzz help..

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by ealydecosta
0

You will get a better response if you post this on mathworks bud :)

Edited by leo002000: n/a

0

Hi
Matlab is a commercial "Matrix Laboratory" package which operates as an interactive programming environment. It is a mainstay of the Mathematics Department software lineup and is also available for PC's and Macintoshes and may be found on the CIRCA VAXes. Matlab is well adapted to numerical experiments since the underlying algorithms for Matlab's builtin functions and supplied m-files are based on the standard libraries LINPACK and EISPACK.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.