how to detect border irregularity?

조회 수: 1 (최근 30일)
joynob ahmed
joynob ahmed 2020년 3월 20일
댓글: joynob ahmed 2020년 4월 2일
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
joynob ahmed
joynob ahmed 2020년 3월 20일
I want to get this actually

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
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
joynob ahmed 2020년 3월 28일
I have tried in 2 ways to detect border irregularity. Here I am taking help of an article where they have got success.I am adding both matfile and the article here.
joynob ahmed
joynob ahmed 2020년 4월 2일
KSSV,Have you seen the files?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by