Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!