how to find intensity of the image

조회 수: 3 (최근 30일)
deepak
deepak 2013년 1월 24일
댓글: Walter Roberson 2017년 2월 25일
hi i am going to divide the image in to some group of pixels and then how to find the intensity of each group please help me to find
  댓글 수: 1
deepak
deepak 2013년 1월 24일
and also tell me about the gray level intensity

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

답변 (3개)

jasche
jasche 2013년 1월 24일
what do you mean by intensity ? Each pixel value is intensity. You could average the intensities(values) of your groups if thats what you want to do.

Image Analyst
Image Analyst 2013년 1월 24일
I'm not sure how you're going to divide your image into groups and if you already know how to do that, but assuming you have rectangular regions defined by their rows and columns, you can get the mean of a rectangular chunk of a gray scale image this way:
meanGrayLevel = mean2(yourImage(row1:row2, column1:column2));

Abarna Hari
Abarna Hari 2017년 2월 25일
Hi,I am going to taking an muscle image affected by diabetes for my project..I need codings for determining intensity for an gray scale image... the value should be in(0-255)...how is it?
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 2월 25일
When you use imread() to read a grayscale image, it is most often already 0 to 255.
Occasionally if you use imread() you will get back an int16 or uint16; it is not common, but it happens.
If you are using dicomread() then you might get back uint8 or int16 or uint16 or possibly even double (though I would need to check to be sure that is allowed.)
If you have an int16 or uint16 image then you can convert it to uint8 using im2uint8() . im2uint8() also works if you have an image that is single or double in the range 0 to 1.
If you have double outside of the range 0 to 1, you might need to use mat2gray() followed by im2uint8()

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by