cant write image exactly shown by imshow
Mostrar comentarios más antiguos
hi every body. i have written a code which the result in imshow is ok but when i want to imwrite it, its different and wrong. could any body help me please?
Echo = imread('echo60%-croped-SRAD.jpg');
Mask = imread('mask60%.jpg');
Echo = mat2gray(Echo(:,:,1));
Mask = mat2gray(Mask(:,:,1));
Echo_Com = imcomplement(Echo);
Echo_Com_Final = (Echo_Com.*Mask)*255;
imshow(Echo_Com_Final, [0 255]);
imwrite(Echo_Com_Final,map,'echo60%-croped-SRAD_complement.jpg')
2 comentarios
Thiago Henrique Gomes Lobato
el 5 de Abr. de 2020
What "map" are you using? Are you sure it is the right one? Have you tried without it? Also, what exactly you mean by different and wrong?
talayeh ghodsi
el 5 de Abr. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!