how to detect border irregularity?
古いコメントを表示
I have traced exterior boundaries of this region. now i want to have boundary box and centre of mass around it. How can I do this?

回答 (1 件)
KSSV
2020 年 3 月 20 日
If (x,y) are your boundary points.
% Get bounding box
x0 = min(x) ; x1 = max(x) ;
y0 = min(y) ; y1 = max(y) ;
%
A = [x0,y0] ;
B = [x1,y1] ;
Also to get the center, you can find mean.
iwant = [mean(x) mean(y)] ;
9 件のコメント
joynob ahmed
2020 年 3 月 20 日
B = cell2mat(B) ; % assuming B is two columns
x = B(:,2) ; y = B(:,1) ;
joynob ahmed
2020 年 3 月 21 日
編集済み: joynob ahmed
2020 年 3 月 21 日
joynob ahmed
2020 年 3 月 25 日
KSSV
2020 年 3 月 26 日
Attach your original image.
joynob ahmed
2020 年 3 月 26 日
KSSV
2020 年 3 月 26 日
Attach B and L into mat file and share.
joynob ahmed
2020 年 3 月 28 日
joynob ahmed
2020 年 4 月 2 日
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


