extract and remove matrix from matrix

2 ビュー (過去 30 日間)
Jitesh Bhanushali
Jitesh Bhanushali 2014 年 4 月 24 日
回答済み: Jitesh Bhanushali 2014 年 4 月 24 日
sir i have 256*256 matrix i want to extract all 6*6 matrix from 8*8 subblocks of 256*256 matrix.. again i want to add all zeros to 6*6 matrix and make it 8*8 what is code for that
  1 件のコメント
Walter Roberson
Walter Roberson 2014 年 4 月 24 日
Is it correct that for every 8 x 8 sub-block of your image, you want to extract all 9 possible 6 x 6 sub-blocks, and pad them out to 8 x 8? When they are expanded to 8 x 8, do you want the 6 x 6 always centered, one row of 0 above, one below, one left, one right? Or do you want the parts of the 8 x 8 that are not being extracted to become 0's? e.g., one might end up like
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1

サインインしてコメントする。

回答 (1 件)

Jitesh Bhanushali
Jitesh Bhanushali 2014 年 4 月 24 日
sir i want left upper 6*6 matrix.. and i want two different codes one for extracting the upper left 6*6 matrix and another code for padding zeros and again made the matrix 8*8

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by