How to delete a row from stats table generated by regionprops3 based on table values ?
1 次查看(过去 30 天)
显示 更早的评论
I have generated a stats table by regionprops3 for a 3D binary image. I wish to delete specific rows from the table based on one of the cell value. For e.g if one the column in the table is Volume, i wish to delete all rows with voume less than 200.
My stats table also has "IMAGE" column which is a cell which contains a 3D matrix of the boundary box of the object calculated by regionprops3. I also wish to delete rows based on the size of this IMAGE column.
0 个评论
回答(1 个)
Image Analyst
2022-6-21
Otherwise you could delete rows something like this
badRows = t.Volume < 200;
t(badRows, :) = [];
To do the bounding box computations I suggest you get the 'BoundingBox' property, not the 'Image' property.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Language Support 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!