how to get the (x,y) coordinate values of points touching bounding box
Mostra commenti meno recenti
I have a binary object
How can i get the (x,y) co-ordinate value of the points touching the bounding box.
Risposta accettata
Più risposte (1)
Stalin Samuel
il 22 Mar 2018
Modificato: Stalin Samuel
il 22 Mar 2018
Let us assume that, you have the image(from bounding box) in variable "Elysi". Then you can get the co-ordinate values using below code
[x1 y1]=find( Elysi(1,:)==1)
[x2 y2]=find( Elysi(:,end)==1)
[x3 y3]=find( Elysi(end,:)==1)
[x4 y4]=find( Elysi(:,1)==1)
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!