Creating a table of ROI average values

3 ビュー (過去 30 日間)
Sarron Simpson
Sarron Simpson 2022 年 12 月 7 日
回答済み: Mandar 2023 年 2 月 8 日
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 Center および File ExchangePoint Cloud Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by