extract 4*4 matrix from 8*8

1 次查看(过去 30 天)
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

采纳的回答

Andrei Bobrov
Andrei Bobrov 2014-4-3
blockproc(yourimage,[8 8],@(x)x.data(1:4,1:4))
  2 个评论
Jitesh Bhanushali
sir what is code if i want to add zeros to 4*4 matrix and make it 8*8 in the image
Azzi Abdelmalek
Azzi Abdelmalek 2014-4-3
blockproc(im,[8 8],@(x) [x.data(1:4,1:4) zeros(4);zeros(4,8)]);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by