how can I find withe dots in image?

조회 수: 2 (최근 30일)
nadia
nadia 2016년 10월 18일
편집: Xiaoli 2016년 10월 19일
I have some mammography images and exist white spots in some of them. I want to extract this spots. do you have any suggestion?please help me. thank you.
  댓글 수: 2
nadia
nadia 2016년 10월 19일
no one can guide me?
Xiaoli
Xiaoli 2016년 10월 19일
편집: Xiaoli 2016년 10월 19일
I was thinking that maybe the intensity of the whiteness of the spot might be in a different range from the rest of the image. Use the imtool or impixelinfo to see the intensity of the whiteness of the spot. In a grayscale image 0 is black and 1 is white. That spot looks pretty white. So for example;
a=imread('imagename.tiff')
b=mat2gray%if not already a grayimage
imtool(b)%scroll to view the intensity of the white spot
level=# %depending on the intensity of the dot
im2bw(b,level)
so for example, if the intensity of the spot is 0.9, by converting to binary and choosing a level of lets say 0.88, all the pixel value below 0.88 will be turned to black and the ones above will be white. See if that helps you!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by