Change bit depth for a PNG image
5 次查看(过去 30 天)
显示 更早的评论
hello , i have a dataset of images with 12 bit represantation and i want to know if it is possible to convert them to 8 bit representation . thanks
0 个评论
采纳的回答
Image Analyst
2014-1-15
Yes. How do you want to do it? Scale linearly? Or take the upper or lower 8 bits and throw away 4 bits? Maybe you can try mat2gray().
2 个评论
Image Analyst
2014-1-15
The number of gray levels (bit depth) and the lateral size of the image (number of rows and columns) are unrelated/independent. You can adjust each on it's own. But I don't know what you want to do. Why do you think that you want to change the bit depth (number of intensity gray levels)? And what does that have to do with the pixel being high resolution (10 megapixels or whatever)?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!