Differences in image output between transparent pngs using imread
Hi, I’ve been doing some work with image processing, and reading two difference transparent pngs seem to give two different output.
[A, map, transparency] = imread(‘https://images.fotmob.com/image_resources/logo/leaguelogo/109.png’);
gives a 192×192 uint8 for ‘A’, a 256×3 double for ‘map’, and a 192×192 double for ‘transparency’
However, running the same code on a different transparent png gives a different output structure
[A, map, transparency] = imread(‘https://images.fotmob.com/image_resources/logo/teamlogo/9818.png’);
gives a 128x128x3 uint8 fo ‘A’, nothing for ‘map’, and 128×128 uint8 for ‘transparency’.
I would like to understand why these outputs are different for the same file type, and also if there is a way to convert the first case into the second case, as the second case is the most important for meHi, I’ve been doing some work with image processing, and reading two difference transparent pngs seem to give two different output.
[A, map, transparency] = imread(‘https://images.fotmob.com/image_resources/logo/leaguelogo/109.png’);
gives a 192×192 uint8 for ‘A’, a 256×3 double for ‘map’, and a 192×192 double for ‘transparency’
However, running the same code on a different transparent png gives a different output structure
[A, map, transparency] = imread(‘https://images.fotmob.com/image_resources/logo/teamlogo/9818.png’);
gives a 128x128x3 uint8 fo ‘A’, nothing for ‘map’, and 128×128 uint8 for ‘transparency’.
I would like to understand why these outputs are different for the same file type, and also if there is a way to convert the first case into the second case, as the second case is the most important for me Hi, I’ve been doing some work with image processing, and reading two difference transparent pngs seem to give two different output.
[A, map, transparency] = imread(‘https://images.fotmob.com/image_resources/logo/leaguelogo/109.png’);
gives a 192×192 uint8 for ‘A’, a 256×3 double for ‘map’, and a 192×192 double for ‘transparency’
However, running the same code on a different transparent png gives a different output structure
[A, map, transparency] = imread(‘https://images.fotmob.com/image_resources/logo/teamlogo/9818.png’);
gives a 128x128x3 uint8 fo ‘A’, nothing for ‘map’, and 128×128 uint8 for ‘transparency’.
I would like to understand why these outputs are different for the same file type, and also if there is a way to convert the first case into the second case, as the second case is the most important for me imread, output, png, colormap, transparency map MATLAB Answers — New Questions