Creating a table of ROI average values

2 次查看(过去 30 天)
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!

回答(1 个)

Mandar
Mandar 2023-2-8
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

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by