Borrar filtros
Borrar filtros

how to create 8*8 subblock from a image without using matlab command

1 visualización (últimos 30 días)
how to create 8*8 subblock from a image without using matlab command
  2 comentarios
Walter Roberson
Walter Roberson el 22 de Nov. de 2012
Use MATLAB functions instead ?
Are you aware that even array indexing uses built-in MATLAB functions?
vipul utsav
vipul utsav el 22 de Nov. de 2012
it is ok. but i don't want to use mat2cell type function.i want logic for dividing image into subimage of 8*8.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Nov. de 2012
Hint:
rowblks = size(YourImage, 1) / 8;
for K = 1 : rowblocks
YourImage( 8 * K - 7 : 8 * K, ....... )
  4 comentarios
vipul utsav
vipul utsav el 22 de Nov. de 2012
400*400=50*50 sub block of 8*8 ;i want every block to read for some doing some mathematical operation on it. suppose i want 6th block of 1st row.
Walter Roberson
Walter Roberson el 22 de Nov. de 2012
BR = 1; BC = 6;
YourImage(8 * RB - 7 : 8 * BR, 8 * BC - 7 : 8 * BC, :)

Iniciar sesión para comentar.

Categorías

Más información sobre Computer Vision with Simulink 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