how can i segment image into blocks

3 Ansichten (letzte 30 Tage)
Ahmed almansory
Ahmed almansory am 19 Dez. 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.

Antworten (1)

Matt J
Matt J am 19 Dez. 2012
One way is using this file
Example:
A=rand(80);
subimages=mat2tiles(A,[8,8]); %break into 8x8 blocks

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by