필터 지우기
필터 지우기

How to calculate sum of pixel values in grey scale images.

조회 수: 4 (최근 30일)
Ahmad Alenezi
Ahmad Alenezi 2019년 7월 29일
답변: Guillaume 2019년 7월 29일
Hi all,
I have a grey scale image that contains a tumour uptake and i want to know how to calculate the sum of all pixel values (intensities) within this tumour. I have selected the ROI where i want to calculate the uptake value. I called this image myROI.
Can you help in this, please ?

채택된 답변

Guillaume
Guillaume 2019년 7월 29일
Not many details are given, but shouldn't it be:
sum(myROI(:)) %sum of all values in array myROI
If on R2018b or later, you can also use:
sum(myROI, 'all')

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by