3Dデータ中の球体カウント
5 views (last 30 days)
Show older comments
医用画像のテクスチャ解析のために、3Dデータ中の球をカウントする方法を知りたいです。
対象の3Dデータは添付画像をイメージしています。
5 Comments
Accepted Answer
michio
on 19 Jan 2018
Edited: michio
on 19 Jan 2018
もし画像のように綺麗に分離している球体の形をしている点群のみであれば MATLAB の alphaShape オブジェクトでうまくいくかもしれません。いろんな形の塊が存在しその中から球体を見つける、という場合には別の方法を考える必要があります。
[x1, y1, z1] = sphere(24);
x1 = x1(:);
y1 = y1(:);
z1 = z1(:);
x2 = x1+5;
P = [x1 y1 z1; x2 y1 z1];
P = unique(P,'rows');
plot3(P(:,1),P(:,2),P(:,3),'.')
axis equal
grid on
shp = alphaShape(x,y,z);
numRegions(shp)
3 Comments
Takuji Fukumoto
on 19 Jan 2018
Volume画像で数の測定だけでなく、形状の解析もされる場合には regionprops3 も便利ですので、よろしければご利用ください。 https://www.mathworks.com/help/releases/R2017b/images/ref/regionprops3.html
More Answers (0)
See Also
Categories
Find more on 領域とイメージのプロパティ in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!