资源简介
matlab对点云数据进行曲面分析,对三维点云配准算法有很大的改进作用。
代码片段和文件信息
function [output_gaussian output_mean output_k1 output_k2] = MLS_curvature_computing(input_pnts input_normals eval_pnts number_of_neighbor gaussian_param)
% Direct computing of point-set surface curvatures
%
% [out_a out_b out_c out_d] = MLS_curvature_computing (in_1 in_2 in_3 in_4 in_5)
%
% Description :
% Direct computing of surface curvatures for point-set surfaces based on
% a set of analytical equations derived from MLS.
%
% Parameters [IN ]:
% in_1 : input synthetic/real point data which will define an MLS surface
% in_2 : corresponding normals of the input synthetic/real point data
% in_3 : positions where to evaluate surface curvatures
% in_4 : number of neighbor points which will contribute to the curvature
% computing at each evaluation position
% in_5 : Gaussian scale parameter that determines the width of the Gaussian
% kernel
%
% Returns [ OUT ]:
% out_a : output gaussian curvatures
% out_b : output mean curvatures
% out_c : output maximum principal curvatures
% out_d : output minimum principal curvatures
%
% Example :
% see the demo
%
% References :
% Yang P. and Qian X. “Direct computing of surface curvatures for
% point-set surfaces“ Proceedings of 2007 IEEE/Eurographics Symposium
% on Point-based Graphics(PBG) Prague Czech Republic Sep. 2007.
%
% Authors : Pinghai Yang
% Created : Sep. 25 2007
% Version : 1.0
% Matlab Version : 7.0 ( Windows )
%
% Copyright (c) 2007 CDM Lab Illinois Institute of Technology U.S.A.
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Output Gaussian curvature
output_gaussian = zeros(size(eval_pnts2)size(eval_pnts3));
% Output Mean curvature
output_mean = zeros(size(eval_pnts2)size(eval_pnts3));
for i = 1:size(eval_pnts2)
for j = 1:size(eval_pnts3)
% Coordinates of the current point
eval_pnt = eval_pnts(:ij);
neighbor_index = nearestneighbour(eval_pnt input_pnts ‘NumberOfNeighbours‘ number_of_neighbor);
neighbor_pnts = input_pnts(:neighbor_index);
% Difference vectors from neighbor points to the evaluation point
diff_vec = repmat(eval_pnt 1 number_of_neighbor) - neighbor_pnts;
dist_squared = diff_vec(1:).*diff_vec(1:) + diff_vec(2:).*diff_vec(2:) + diff_vec(3:).*diff_vec(3:);
weight = exp(- dist_squared / gaussian_param^2);
% Delta_g of the current point
neighbor_normals = input_normals(:neighbor_index);
for ii = 1:3
eval_normal(ii1) = sum(weight.*neighbor_normals(ii:));
end
normalized_eval_normal = eval_normal/norm(eval_normal);
projected_diff_vec = diff_vec(1:).*normalized_eval_normal(11) + diff_vec(2:).*normalized_eval_normal(21)...
+ diff_vec(3:).*normalized_eval_normal(31);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%delta_g
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2007-10-04 20:55 demo_MLS-My\
文件 8400 2007-09-30 00:55 demo_MLS-My\demo_evaluation_data.txt
文件 281617 2007-09-30 00:55 demo_MLS-My\demo_input_data.txt
文件 11647 2007-09-30 01:18 demo_MLS-My\demo_resulting_curvatures.txt
文件 7484 2007-09-30 01:16 demo_MLS-My\MLS_curvature_computing.m
文件 1854 2007-09-30 01:27 demo_MLS-My\MLS_demo.m
文件 1182 2007-09-30 01:29 demo_MLS-My\MLS_energy.asv
文件 1196 2007-09-30 01:29 demo_MLS-My\MLS_energy.m
文件 2000 2007-09-30 01:29 demo_MLS-My\MLS_projection.asv
文件 2000 2007-09-30 01:31 demo_MLS-My\MLS_projection.m
文件 9365 2006-11-14 23:30 demo_MLS-My\nearestneighbour.m
文件 975 2007-09-30 01:37 demo_MLS-My\readme.txt
- 上一篇:最简单桥式整流和三相逆变电路
- 下一篇:小波包分解
相关资源
- 基于Matlab的最大熵模糊图像复原算法
- KITTI雷达点云与图像数据融合matlab源码
- 基于最小二乘发的平面拟合
- matlab 解码 NMEA0183格式GGA数据
- 一个有关飞机的模板匹配的跟踪的m
- 基于MATLAB的电弧模型仿真
- PRI信号分选
- Matlab论文:基于Matlab的二进制数字调
- 802.11协议吞吐量随节点数性能仿真
- matlab图片rgb转yuv,存.yuv文件 播放器
- Duda模式分类Pattern Classification MATLAB 代
- dijkstra算法的matlab实现31274
- 随机路径生成函数matlab
- matlab语音信号处理工具箱
- matlab2013激活文件
- matlab实现游程编码
- 暗通道先验+引导滤波MATLAB代码
- 边缘检测中的canny算法及其matlab实现
- 通过达曼光栅生成点阵的matlab程序.
- MATLAB核函数算法
- 求控制系统的性能指标MptrtsFAI,matl
- matlab 求DTFT
- 逆变器重复控制算法MATLAB仿真
- MATLAB R2014b 许可协议文件
- matlab读取comtrade格式的程序
- 基于Matlab的RC一阶电路仿真
- Las点云数据读取代码
- 雷达回波加天线方向图模拟程序
- MATLAB 2017b 安装文件及其破解文件百度
- Matlab实现音频降噪
评论
共有 条评论