フィルターのクリア

How to set point cloud transparency?

6 ビュー (過去 30 日間)
Preetham Manjunatha
Preetham Manjunatha 2019 年 10 月 31 日
回答済み: Kritika Bansal 2019 年 11 月 6 日
Suppose I have aligned two point clouds, how can I set transparencies for each point clouds? I tried with the below lines:
src_PC = pcshow(src_pcloud.Location, [0 0.4 0], 'VerticalAxis','Y','VerticalAxisDir','Down');
tgt_PC = pcshow(tgt_pcloud.Location, [0.4 0 0], 'VerticalAxis','Y','VerticalAxisDir','Down');
alpha(src_PC, .25)
alpha(tgt_PC, .25)
But what I am getting is this image:
tranparency.png
Keypoints that are produced from
% PLot all the keypoints on source and target point clouds
scatter3_src_kp = scatter3(src_keypoints_XYZ(:,1), src_keypoints_XYZ(:,2), src_keypoints_XYZ(:,3), ....
markersize, [0 1 0], 'filled', 'Marker', 's');
scatter3_tgt_kp = scatter3(tgt_keypoints_XYZ(:,1), tgt_keypoints_XYZ(:,2), tgt_keypoints_XYZ(:,3), ...
markersize, [1 0 0], 'filled', 'Marker', 's');
are becoming transparent.
Please let me know how can I achive tranparent point clouds.
  2 件のコメント
darova
darova 2019 年 10 月 31 日
Look HERE
Preetham Manjunatha
Preetham Manjunatha 2019 年 11 月 1 日
It seems we need to use scatter or scatter3 function. Is there any way we can directly control from pcshow graphics handles?

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

回答 (1 件)

Kritika Bansal
Kritika Bansal 2019 年 11 月 6 日
Hi,
You can use scatter3 function to plot the pointCloud object and change MarkerFaceAlpha and MarkerEdgeAlpha to change the transparency of the pointCloud as suggested in this link: https://www.mathworks.com/matlabcentral/answers/325258-how-can-i-make-the-plot-function-markers-and-lines-transparent-using-alpha-or-otherwise
You can also consider changing the colormap by either specifying it directly during pcshow or changing it in the figure window. This may help you in better visualization of the point cloud. You can look at the ‘Tips’ section of the following link to know more:

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by