Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
hello, how can I do to divide the image (GTMD16=[1,3,5,6;5,2,3,6;4,1,6,1;1,2,4,4];) data in test database and learning
조회 수: 1 (최근 30일)
이전 댓글 표시
GTMD16=[1,3,5,6;5,2,3,6;4,1,6,1;1,2,4,4];
CC=GTMD16(:);
m = 1:16;
ID = (reshape(m,4,4))';
ID=[1,2,3,4;5,6,7,8;9,10,11,12;13,14,15,16];
for k=1:6
masque(:,:,k)= double(reshape(CC==k,4,4));
idclasse(:,:,k) = masque(:,:,k)
idclase(:,:,k) = idclasse(:,:,k).*ID;
m(:,:,k) = idclase((idclase(:,:,k) ~= 0),:,k)
figure(k), imagesc(masque(:,:,k)),colormap gray, grid on
figure, imagesc(GTMD16.*masque(:,:,k)), grid on
nppc(k) = sum(sum(masque(:,:,k)))
pause
end
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!