Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取图像中使用的位数Matlab?
Matlab
谢谢。
如果您指的是图像的位深度(即编码一个像素使用多少位),请尝试使用图像处理工具箱的功能imfinfo
imfinfo
链接到文档
以下是您可以使用它的方法:
info = imfinfo('your_image.jpg') # put your filename, matlab recognizes many image formats bitdepth = info.BitDepth