- PNG file with bitdepth of 8 (bits per channel) to encode 24 of the bits, and specify a uint8 alpha map for the remaining 8 bits
- Sun RAS file passed an RGB image that is uint8 per channel, and a uint8 alpha map
- TIFF with a M x N x 4 uint8 matrix passed in, which would cause TIFF to think of the file as being CMYK
- PNG with a bitdepth of 16 (per channel) and passing a 3 channel uint16 matrix, resulting in a 48 bit per pixel image
Writing 32 bit images
조회 수: 7 (최근 30일)
이전 댓글 표시
how can i make 32 bit image in Matlab?
댓글 수: 0
채택된 답변
Walter Roberson
2011년 4월 27일
How many color channels are you using, and how many bits do you require for each of the color channels?
Does the file have to be directly decodable by an external viewer as 32 bits, or is it sufficient that you can recover the 32 bits upon reading it in?
Your options:
댓글 수: 9
Zakir
2011년 5월 26일
Hi!
May you tell me ?
1-how to read the alpha channel?
2-How to set new alpha channel of a image?
3-how to show image with alpha channel?
Walter Roberson
2011년 5월 26일
If you look above your comment, you will find something that says "Show older comments". Click on that. The code you ask for is there.
추가 답변 (1개)
John
2011년 5월 3일
The Tiff class was introduced in R2009b, which allows one to create TIFFs with a variety of configurations, including 32-bit floating point, 8-bit RGB with an alpha layer, and others.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!