Creating a table of ROI average values

3 views (last 30 days)
Sarron Simpson
Sarron Simpson on 7 Dec 2022
Answered: Mandar on 8 Feb 2023
Hello,
I have a folder of ~2,000 grayscale images. I've selected a ROI and gotten the average pixel value from those areas. I just need to figure out a way to create a table so that I could show that frame 24 has an average value of "x". I'm not sure where to start on this, any help would be much appreciated.
Thanks!

Answers (1)

Mandar
Mandar on 8 Feb 2023
I understand that you want to create a table that shows average value of the ROI for each frame. Refer the demo example below which makes use of "table" function to generate the table with the entries of frame number and respective average ROI value of each frame. Refer the link below to know more about creating tables in the MATLAB.
Frame_number = [1; 2; 3; 4];
Avg_ROI_value = [12.5;55.5;36.7;12.4];
Entries = table(Frame_number,Avg_ROI_value)
Entries = 4×2 table
Frame_number Avg_ROI_value ____________ _____________ 1 12.5 2 55.5 3 36.7 4 12.4

Community Treasure Hunt

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

Start Hunting!