When using imread function, the blank area automatic as 255. How to turn the pixel of blank area as empty?
Mostrar comentarios más antiguos
rgb_image = imread('13100 IP.jpg');

Respuestas (1)
Walter Roberson
el 3 de Mayo de 2017
0 votos
That is not possible with .jpg files. .jpg files can only store integral values, and cannot store an Alpha channel.
If you want to store information about which positions are empty, you will need to use a different image file format; in particular imwrite() PNG image file and either the 'alpha' or 'transparency' options. It is also possible to create alpha channels in TIFF images if you use the Tiff() class.
1 comentario
Mei Synn Tan
el 4 de Mayo de 2017
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!