Overall intensity calculation from an image

27 ビュー (過去 30 日間)
Mahe Jabeen
Mahe Jabeen 2023 年 9 月 22 日
コメント済み: Image Analyst 2023 年 9 月 23 日
Hi,
I want to calculate the overall intensity of this image here. I have separated this red channel from an RGB flurescence image. Please guide me on how to do this.

採用された回答

Image Analyst
Image Analyst 2023 年 9 月 22 日
Not sure what you mean by overall intensity. You can get the red channel like this
redChannel = rgbImage(:, :, 1);
% Get sum of all pixel values:
sumOfValues = sum(redChannel(:))
% Get mean value of image intensity over all image pixels
meanIntensity = mean2(redChannel)
  6 件のコメント
Mahe Jabeen
Mahe Jabeen 2023 年 9 月 23 日
Hi @Image Analyst, yes I agree with your point. My values were switched in the code I pasted and was calculating sum of intensity of all the gray pixels, not the sum of pixels.
Image Analyst
Image Analyst 2023 年 9 月 23 日
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by