How to find x and y coordinates in a black and white image?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmad Hasnain
am 13 Mär. 2020
Beantwortet: Ameer Hamza
am 13 Mär. 2020
I have a black and white image. I want to find the coordinates of the outline of the black blob. I want these coordinates so that I can draw the same shape in the CAD software.
How can I do that?
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 13 Mär. 2020
Try this. It give coordinates of image pixels on the edge
im = rgb2gray(imread('map_phydesign_Celest_65_M04_W800_H1000_Close_new.png'));
im_edge = edge(im);
[x, y] = find(im_edge==1);
coordinates = [x y];
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!