how to detect border irregularity?
Ältere Kommentare anzeigen
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 Kommentar
joynob ahmed
am 20 Mär. 2020
Antworten (1)
KSSV
am 20 Mär. 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 Kommentare
joynob ahmed
am 20 Mär. 2020
B = cell2mat(B) ; % assuming B is two columns
x = B(:,2) ; y = B(:,1) ;
joynob ahmed
am 21 Mär. 2020
Bearbeitet: joynob ahmed
am 21 Mär. 2020
joynob ahmed
am 25 Mär. 2020
KSSV
am 26 Mär. 2020
Attach your original image.
joynob ahmed
am 26 Mär. 2020
KSSV
am 26 Mär. 2020
Attach B and L into mat file and share.
joynob ahmed
am 28 Mär. 2020
joynob ahmed
am 2 Apr. 2020
Kategorien
Mehr zu Image Arithmetic finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


