sir i have 256*256 image i want to extract top left 4*4 matrix from every 8*8 blocks of that image..please send me the code

 Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 3 de Abr. de 2014

1 voto

blockproc(yourimage,[8 8],@(x)x.data(1:4,1:4))

2 comentarios

Jitesh Bhanushali
Jitesh Bhanushali el 3 de Abr. de 2014
sir what is code if i want to add zeros to 4*4 matrix and make it 8*8 in the image
blockproc(im,[8 8],@(x) [x.data(1:4,1:4) zeros(4);zeros(4,8)]);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by