Creating a table of ROI average values

2 visualizzazioni (ultimi 30 giorni)
Sarron Simpson
Sarron Simpson il 7 Dic 2022
Risposto: Mandar il 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!

Risposte (1)

Mandar
Mandar il 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

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by