如何使用法线向量从点云中删除隐藏点(在Matlab中)? [英] How to remove hidden points from point cloud using normal vectors (in matlab)?

查看:187
本文介绍了如何使用法线向量从点云中删除隐藏点(在Matlab中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带点云数据的文本文件. 本文档包含六列: x,y,z点坐标和nx,ny,nz -法向矢量坐标,即

I have text file with point cloud data. This document contains six columns: x,y,z coordinates of points and nx,ny, nz - normal vector coordinate i.e.,

-2.27535 2.33442 12.8694 0.492013 -0.866115 -0.0881364 

谁能告诉我如何使用法向矢量删除隐藏点(位于背面或在视图中不可见)? 我正在使用Matlab.我会感谢所有有用的提示.

Could anyone tell me how can I remove hidden points (which are located in the back surface or are not visible in the view) using normal vector? I'm using Matlab.I will appreciate every helpful tip.

推荐答案

您可能会引用背面剔除:您可以使用法线向量和视图方向之间的点积来确定法线是面向观察者(负点积)还是背对观察者(正点积).

You probably refer to back face culling: you can determine, using dot product between the normal vector and the view direction whether the normal faces the viewer (negative dot-product) or faces away from the viewer (positive dot product).

这篇关于如何使用法线向量从点云中删除隐藏点(在Matlab中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆