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.

답변 (1개)

Image Analyst
Image Analyst 2022년 6월 21일
You could call bwareaopen to get rid of those blobs before calling regionprops3.
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.

카테고리

Help CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by