Why does my 16 bit grayscale JPEG not open outside MATLAB?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 11 de Oct. de 2019
Respondida: MathWorks Support Team
el 11 de Oct. de 2019
I am creating a 16-bit JPG file using IMWRITE:
X = uint16(65535 * rand(1024,1024));
imwrite(X,'noise.jpg','jpeg','BitDepth',16,'Quality',100);
However, I can only access and use the file in MATLAB. All other programs outside MATLAB recognize the file as corrupt.
Respuesta aceptada
MathWorks Support Team
el 12 de Oct. de 2019
The 16-bit grayscale JPEG file being created is not corrupt, but 16-bit lossless grayscale files are supported in such a limited fashion (mostly used inside DICOM files) that most applications that support reading and writing JPEG files do not read these properly.
If you need to save 16-bit grayscale image data, TIFF format is a much better choice.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Import, Export, and Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!