how to rectify the error

i want to obtain the original image which is stored in Makeup_YMU.mat.The YMU images are stored in a matrix YMU_matrix 58500x604 uint8.when i execute the command img=reshape(YMU_matrix(i),[150 130 3]), i get the error,Subscript indices must either be real positive integers or logicals..

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 10 月 4 日

0 投票

for ImageNumber = 1 : size(YMU_matrix, 2)
img=reshape(YMU_matrix(:, ImageNumber),[150 130 3]);
...
end

2 件のコメント

Annie micheal
Annie micheal 2017 年 10 月 4 日
Thanx a lot.. its working
Jan
Jan 2017 年 10 月 4 日
@Annie: If this solves your problem, please accept the answer. Thanks.

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

カテゴリ

ヘルプ センター および File ExchangeGeometric Transformation and Image Registration についてさらに検索

質問済み:

2017 年 10 月 4 日

コメント済み:

Jan
2017 年 10 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by