vector form of cuboid.

2 ビュー (過去 30 日間)
Berbia
Berbia 2012 年 9 月 30 日
I'm in need to concatenate the pixel values of 3 images(16 X 16 patches in an image sequence) which is stored in a folder,along with row order to form a vector component.How to access those images to form a vector?

採用された回答

Matt J
Matt J 2012 年 9 月 30 日
If I've understood your question, you would
(1) use IMREAD to read the images from the folders into MATLAB matrix variables A,B,C.
(2) Concatenate them as D=[A,B,C]
(3) Change D to a vector by doing D=D(:), or D=reshape(D,[],1) or similar.
  5 件のコメント
Matt J
Matt J 2012 年 10 月 2 日
OK, I'm glad. FYI, you can create D more briefly use comma-separated-list features of MATLAB:
D=vertcat(wholevector{:});
Berbia
Berbia 2012 年 10 月 2 日
Helpful information...! Thanks a lot..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by