How to check the Input Image ???

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.

 Accepted Answer

Walter Roberson
Walter Roberson on 3 Feb 2017
imfinfo() can be used to check information such as bit depth and samples per pixel and lossless compression or not.

3 Comments

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.
Check the histogram with imhist() or histogram().
Thanks for suggestion.

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Asked:

May
on 3 Feb 2017

Commented:

May
on 17 Feb 2017

Community Treasure Hunt

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

Start Hunting!