How can I check the image whether it is two-dimensional or three-dimensional programmatically?

I have a variety of images that I try to treat with a single matlab program, and these pictures are some of three dimensions and some are two dimensions. In order to read all the images and process them in my program, I must specify a specific treatment for images with two dimensions in order to implement the program on all types. So I first need to check the images if they are two-dimensional so that I can then convert them to three dimensions like the rest of the pictures I have. I hope there is a programmatic way to the problem.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품

릴리스

R2018a

태그

질문:

2020년 7월 5일

댓글:

2020년 7월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by