Tile an image into n number of tiles

2 visualizaciones (últimos 30 días)
uthayasooriyan anuraj
uthayasooriyan anuraj el 26 de Mayo de 2017
Comentada: Walter Roberson el 18 de Ag. de 2018
How to divide an image into n-number of tiles (say n=100) with equal size. I would like to do it with for loop.
  2 comentarios
Stephen23
Stephen23 el 26 de Mayo de 2017
Jan
Jan el 26 de Mayo de 2017
With or without overlap? What happens if the number of rows or columns is not a multiple of e.g. 10? How should the tiles be distributed? As 10*10 or 4 * 25? What have you tried so far and which problems occur?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 26 de Mayo de 2017
  2 comentarios
Ade Aulya
Ade Aulya el 18 de Ag. de 2018
after we tiles it. how can we get the glcm value of each tiles sir ? I mean, how can we do it automatically ? for example.. after we get the first tile we extract glcm from that first tile before move to the second tile and so on. do u have any idea please, sir ?
Walter Roberson
Walter Roberson el 18 de Ag. de 2018
blocksize = [8 8];
I = imread('cameraman.tif');
I2 = blockproc(I, blocksize, @(block_struct) graycomatrix(block_struct.data), 'trim', false);
The resulting I2 will be (size(I,1)/blocksize * 8) by (size(I,2)/blocksize * 8) with each 8 x 8 subblock being there results of calling graycomatrix on one tile.

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by