フィルターのクリア

how to divide 256x256 image into 64 blocks of each 8x8 matrix

1 回表示 (過去 30 日間)
Abhinaya Rajasekaran
Abhinaya Rajasekaran 2015 年 3 月 11 日
編集済み: Stephen23 2015 年 3 月 11 日
hi..i have an image of 256x256 matrix...i want to divide it into 64 blocks each of 8x8 matrix and want to store each 8x8 matrix in notepad...can any1 help me with a matlab code?
  1 件のコメント
Jan
Jan 2015 年 3 月 11 日
What could be meant by "store each 8x8 matrix in notepad". What notepad? In which format?

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

回答 (1 件)

Stephen23
Stephen23 2015 年 3 月 11 日
編集済み: Stephen23 2015 年 3 月 11 日
You can use mat2cell to divide up the matrix into the submatrices. This will give you a cell array of submatrices.
But what does "store in notepad" mean? Notepad is a simple text editor for Microsoft Windows, but it is not a data storage standard. If you actually meant "text file" , then consider using dlmwrite to write each matrix in the cell array to a text file. If this is not what you meant by "store in notepad", then you will need to explain what you want to do.
And please read the documentation as it actually explains how to use these functions and gives examples too!

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by