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..

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.