I have two different jpg images that are converted from DICOM format. I want to use different threshold functions for each ( optimal thresholding for 1.jpg) and ( Otsu's method for 2.jpg). I would like to check input image first(doesn't mean to check class, bit depth) before thresholding. Please, suggest me how can I check.

 채택된 답변

Walter Roberson
Walter Roberson 2017년 2월 3일

0 개 추천

imfinfo() can be used to check information such as bit depth and samples per pixel and lossless compression or not.

댓글 수: 3

May
May 2017년 2월 3일
Thank a lot for your suggestion. But I do not mean to check the image info. In 1.jpg, the background is gray and in 2.jpg the background is black. Can I check (e.g. graylevel)? I am not sure what properties I should use to check.
Image Analyst
Image Analyst 2017년 2월 3일
Check the histogram with imhist() or histogram().
May
May 2017년 2월 17일
Thanks for suggestion.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

질문:

May
2017년 2월 3일

댓글:

May
2017년 2월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by