Calculate the intensity of all pixel in an immage
1 view (last 30 days)
Show older comments
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 Comments
Rik
on 5 Oct 2020
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.
Answers (1)
Priysha LNU
on 8 Oct 2020
Edited: Priysha LNU
on 8 Oct 2020
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
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!