Funding a way to describe a curve in x y coordinates

1 回表示 (過去 30 日間)
Agnieszka Polak
Agnieszka Polak 2021 年 7 月 27 日
回答済み: Jonas 2021 年 7 月 28 日
Hello,
I have run an image through a processing toolbox in Matlab (to make it greyscale, adjust contrast, used canny edge function with threshold and sigma). I have now the edges of interest and want to plot them in x and y coordinates, so that I have the curve represented by the points of the edge in the image. I do not know how to approach it, any help would be greatly appreciated!
Thank you!

回答 (1 件)

Jonas
Jonas 2021 年 7 月 28 日
you can use [rows,cols] = find(...) to get the corrdinates of your points.
if you want to plot a shape you may have a look into the boundary function

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by