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.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Feb. 2017

0 Stimmen

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

3 Kommentare

May
May am 3 Feb. 2017
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 am 3 Feb. 2017
Check the histogram with imhist() or histogram().
May
May am 17 Feb. 2017
Thanks for suggestion.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Gefragt:

May
am 3 Feb. 2017

Kommentiert:

May
am 17 Feb. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by