Boundary tracing in image
Show older comments
Hello folks,
I am trying to trace the boundaries of a binary edge detected image to the point that I can export the file as polylines into ArcGIS. So far, I have converted the image to a binary image and identified the edges. I've tried to use both bwtraceboundary and bwboundaries to identify the edge outlines and then export this file with polylines, but am not having any luck. The original image is attached as is the code to convert the image to a binary edge-detected image. Any help is much appreciated!
clear
RGB=imread('DJI_0022.jpg'); %inputs image
I=rgb2gray(RGB); %convers to grayscale
figure
imshow(I)
BW1 = edge(I,'Canny',0.6);
imshow(BW1)
Accepted Answer
More Answers (0)
Categories
Find more on Object Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!