CA#1: Display image type using imfinfo structure and BitDept
Version 2.1.0 (1.67 KB) by
Maher Rajab
Display image type: truecolor (24 bit), grayscale (8-bit) or binary (1-bit). Image type is tested by imfinfo structure and BitDepth field.
% -- 24 bit truecolor image: BitDepth = 24:
% -- 8-bit grayscale image: BitDepth = 8:
% -- 1-bit grayscale image: BitDepth = 1:
Cite As
Maher Rajab (2025). CA#1: Display image type using imfinfo structure and BitDept (https://www.mathworks.com/matlabcentral/fileexchange/117270-ca-1-display-image-type-using-imfinfo-structure-and-bitdept), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.