Display the image with the lineToBorderPoints command?

1 回表示 (過去 30 日間)
Lightisthenight
Lightisthenight 2019 年 1 月 11 日
コメント済み: Alireza Ahani 2021 年 2 月 11 日
I tried to use the Matlab command 'lineToBorderPoints', but it only displays the epilines in a diagram and not in my actual image that i wanted. As shown in the image in the attachment. How can I fix this issue? I did the exact same as in the documentation.
F = stereoParams.FundamentalMatrix;
epiLines_left = epipolarLine(transpose(F),centroids_right); % centroids_right is the point i want to intersect
subplot(1,2,1);
hold on
points = lineToBorderPoints(epiLines_left,size(bw_left)); % bw_left and bw_right are the images
line(points(:,[1,3])',points(:,[2,4])');
hold off
epiLines_right = epipolarLine(F,centroids_left);
subplot(1,2,2);
hold on
ids = transpose(1:size(centroids_left,1));
points = lineToBorderPoints(epiLines_right,size(bw_right));
line(points(:,[1,3])',points(:,[2,4])');
hold off

採用された回答

Walter Roberson
Walter Roberson 2019 年 1 月 11 日
display the image, and hold on, and plot, and hold off, if the requirements are to display the lines over the image .
If you need to build a new image with the lines in it then after you have called the function to calculate the points then use the points as information for computer vision insertShape
  4 件のコメント
Walter Roberson
Walter Roberson 2021 年 2 月 11 日
@Alireza Ahani Sorry, I do not have experience with that topic.
Alireza Ahani
Alireza Ahani 2021 年 2 月 11 日
@Walter RobersonThank you anyway 🙏

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCamera Calibration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by