필터 지우기
필터 지우기

how to rectify the error

조회 수: 1 (최근 30일)
Annie micheal
Annie micheal 2017년 10월 4일
댓글: Jan 2017년 10월 4일
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일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by