Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

how can i segment image into blocks

Asked by Ahmed almansory on 19 Dec 2012

i want to design neural network for image compression , the first step is dividing the image into sub image then convert sub image from 2-dimension to 1-dimension input vector for neural network.

0 Comments

Ahmed almansory

Products

No products are associated with this question.

1 Answer

Answer by Matt J on 19 Dec 2012

One way is using this file

http://www.mathworks.com/matlabcentral/fileexchange/35085-split-nd-array-into-equal-sized-cells

Example:

A=rand(80);
subimages=mat2tiles(A,[8,8]); %break into 8x8 blocks

0 Comments

Matt J

Contact us