How to express the grey-scale image as a twodimensional matrix whose size is M1 x M2.?

2 ビュー (過去 30 日間)
Express the grey-scale image watermark as a two dimensional matrix whose size is M1 x M2.
Img = {Img( k,j), 0 ≤ k ≤ M1, 0 ≤ j ≤ M2}
Convert the two-dimensional image matrix Img into a one-dimensional vector W of length M1 x M2.
W = {W(i) = Img (k,j) ,i = k x M2 + j, 0 ≤ k ≤M1, 0≤ j ≤M2}

採用された回答

Walter Roberson
Walter Roberson 2014 年 3 月 14 日
W = img(:);
See also reshape()

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by