Converting glcm 8*8 matrix to single row vector

how to convert 8*8 grey co matrix to to a single row vector??
A= image path;
glcm=graycomatrix(A);
this is the code that i"m using.

 採用された回答

Stephen23
Stephen23 2019 年 1 月 31 日
編集済み: Stephen23 2019 年 1 月 31 日

1 投票

Depending on the order you want, probably one of these:
reshape(glcm,1,[])
reshape(glcm.',1,[])

1 件のコメント

madhan ravi
madhan ravi 2019 年 1 月 31 日
Also
glcm(:).' % but definitely reshape is faster

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by