Calculate the intensity of all pixel in an immage

조회 수: 2 (최근 30일)
valerio auricchio
valerio auricchio 2020년 10월 5일
편집: Priysha LNU 2020년 10월 8일
I have an immage produced from a "FLIR" cam that applicate an algoritm for polarization. I want to calculate the polarization vector from this immage using the intensity of the pixel of the immage. How i can calculate the intensity of each pixel in the immage?
  댓글 수: 6
Rik
Rik 2020년 10월 5일
That depends on what you mean by intensity of an area. The average? The maximum? The 95th percentile?
And why do you capitalize every 'the'? It is a bit distracting.
valerio auricchio
valerio auricchio 2020년 10월 5일
Sorry for capitalizing "the" :).
I link you the photo that I'm using, I want to calculate the avrage of intensity in the region.
Can you help me with the code?
I read that with the command "regionprops" it's possible to select the region directly on the immage.

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

답변 (1개)

Priysha LNU
Priysha LNU 2020년 10월 8일
편집: Priysha LNU 2020년 10월 8일
The 'REGIONPROPS' command from the Image Processing Toolbox can calculate the minimum, maximum, and average intensity of regions. You can use 'regionprops()' function and ask for the mean intensity of all the blobs by setting the 'Pixel Value Measurements' property.
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, grayscaleImage, 'MeanIntensity');
For more information on the REGIONPROPS function, type
doc regionprops
at the MATLAB Command Window, or go to this documentation link.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by