How to know image is uint16 or uint8 automatically by code

조회 수: 7 (최근 30일)
Vinh
Vinh 2011년 12월 19일
Currently I am working to develop an algorithm to process images which can be type uint16 or uint8. Does image have built in function to tell which is which? The image can be all black so max value can be < 255 even for uint16 so cannot use the max value to tell.
Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 19일

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by