How to calculate intensity value of an image ?
古いコメントを表示
i'm doing project in Image retrieval using Krawtchouk moment .. we are calculating the moment value but to do this.. we need to know the intensity value of an image.. plz help us..
採用された回答
その他の回答 (2 件)
Mona
2013 年 6 月 25 日
0 投票
how can i find : the total number of possible intensity levels in hyper image?
is it the total number of bands?
1 件のコメント
Image Analyst
2013 年 6 月 25 日
Check out the class of the image. If it's uint8, you can have 256 intensity values. If it's uint16, there are 65536 values. If it's color, there are 256*256*256 possible values for a color uint8 image, and 65536*65536*65536 possible values for a color uint16 image.
Poornima Devi
2018 年 1 月 23 日
0 投票
Sir I am also doing a project which includes the calculation of intensity of each pixel soo can I get the perfect code for it pleaseeeee sir it's urgent
3 件のコメント
Aatheeswaran M
2018 年 10 月 10 日
Sir, I am also doing a project which includes the calculation of the intensity of each row soo can I get the perfect code for it please sir it's urgent
YOGITAA YOGITAA
2022 年 3 月 2 日
could you please share the code?
Image Analyst
2022 年 3 月 2 日
編集済み: Image Analyst
2022 年 3 月 2 日
@Poornima Devi, @Aatheeswaran M, and @YOGITAA YOGITAA, the image array is already the intensity of each pixel. There is nothing left to do - you have it already. If you want the intensity along one particular row only, you can use indexing:
row = 42; % Whatever row you want
horizontalProfile = grayImage(row, :);
If you want the mean of that row, you can use mean():
meanGrayLevel = mean(horizontalProfile);
If you'd like to see an tutorial on image segmentation, see it on my File Exchange page:
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!