Problems with syntax and implementation of houghlines
3 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone. This question is to continue with one of my previous queries
I have 2048 binarized tif images which has some lines that intersect or collapse on one another. I have a MATLAB code with regionprops and it works fine when the lines are not collapsing or intersect. I want to replace regionprops with houghlines, and measure the the following properties of the lines in the images:
'centroid', 'Extrema', 'Orientation', 'MajorAxislength' that regionprops measures in general.
2 件のコメント
Matt J
2021 年 3 月 30 日
I am unable to attach tif format files here.
Could you convert it, or post a screenshot of the image so that we have an idea of what it looks like?
What does it mean for a line to "collapse"?
採用された回答
Pratyush Roy
2021 年 4 月 1 日
Hi,
The lines generated by the houghlines method has several properties.Here point1 and point2 represent the coordinates of the extrema points of the line segment and theta represent the orientation of the line. To obtain the centroid, one can take the mean of the point vectors point1 and point2. The axis length for the line can be assumed to the length of the line segment hich is equal to the absolute value of the difference between the point coordinates. To reduce the unfilled gap between the two filled lines, the "FillGap" Name-Value parameter can be changed with the minumum distance between the two lines so that they can be merged.
Hope this helps!
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!