MATLAB Answers

how to detect border irregularity?

5 views (last 30 days)
joynob ahmed
joynob ahmed on 20 Mar 2020
Commented: joynob ahmed on 2 Apr 2020
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 Comment

joynob ahmed
joynob ahmed on 20 Mar 2020
I want to get this actually

Sign in to comment.

Answers (1)

KSSV
KSSV on 20 Mar 2020
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 Comments

Show 6 older comments
KSSV
KSSV on 26 Mar 2020
Attach B and L into mat file and share.
joynob ahmed
joynob ahmed on 28 Mar 2020
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 on 2 Apr 2020
KSSV,Have you seen the files?

Sign in to comment.

Sign in to answer this question.


Translated by