当前位置: 首页 > news >正文

不用网站做cpa沪深300指数怎么买

不用网站做cpa,沪深300指数怎么买,wordpress交流群,怎样用mysql做网站//倾斜平面矫正 https://blog.csdn.net/m0_51559565/article/details/137146179 //平面度和平面缺陷检测,平面矫正法 https://blog.csdn.net/m0_51559565/article/details/137163729前言 通常我们对表面平面度进行检测时,通常使用2种方式。1&#xff1a…
//倾斜平面矫正
https://blog.csdn.net/m0_51559565/article/details/137146179
//平面度和平面缺陷检测,平面矫正法
https://blog.csdn.net/m0_51559565/article/details/137163729

前言

通常我们对表面平面度进行检测时,通常使用2种方式。1:通过大卷积核的高斯滤波进行拟合平面,然后求取拟合平面与3D模型间的点间的距离。2:通过平面矫正,将被测试平面矫正到水平面后,对平面以上和平面以下的点云进行筛选。(关于平面矫正,可以点击文章开头链接查看)。
本文主要讨论通过大卷积核的高斯滤波进行平面拟合,求取拟合平面与3D模型的距离。

1.halcon程序

dev_get_window (WindowHandle)
*读取3通道彩色融合图
read_image (Image, 'D:/1NewWork/Halcon3D/XYZ彩色融合图.tiff')
*拆分3个通道
decompose3 (Image, x, y, z)
*3个通道图像转换为3D模型
xyz_to_object_model_3d (x,y, z, ObjectModel3D)
*显示动态3D模型
threshold (z, Regions, 107.77, 200)
*对二值化图像进行腐蚀,剔除产品边缘,通常使用5*当前模拟表面出现的凹陷情况
erosion_circle (Regions, RegionErosion, 50)
reduce_domain (z, RegionErosion, ImageReduced)
*设置等平面前,对平面进行大卷积核的高斯滤波,防止噪点的存在印象平面精度
gauss_filter (ImageReduced, ImageGauss, 7)
*测量基准平面
xyz_to_object_model_3d (x,y, ImageGauss, ObjectModel3D)
*创建测量拟合平面
fit_primitives_object_model_3d(ObjectModel3D, ['primitive_type', 'fitting_algorithm'], ['plane', 'least_squares_tukey'], ObjectModel3D9)
*获取到平面参数,可用于验算
get_object_model_3d_params(ObjectModel3D9, 'primitive_parameter', plane)*visualize_object_model_3d (WindowHandle, ObjectModel3D9, [], [], [], [], [], [], [], PoseOut)
*对被检测面进行高斯滤波,用于去除噪点。
*如果要求测量精度较大时,推荐高斯卷积核设置为1,或者进行滤波,防止缺陷被覆盖
gauss_filter (ImageReduced, ImageGauss1, 3)
*被测量面
xyz_to_object_model_3d (x,y, ImageGauss1, ObjectModel3D1)
*计算2个测量面的所有点云距离
distance_object_model_3d (ObjectModel3D1, ObjectModel3D9, [], 0, [],[])
*获取结果
get_object_model_3d_params (ObjectModel3D1, '&distance', Z)*visualize_object_model_3d (WindowHandle, ObjectModel3D1, [], [], [], [], [], [], [], PoseOut)tuple_max (Z, Max)
tuple_mean (Z, Mean)
tuple_min (Z, Min)tuple_abs (Max, AbsMax)
tuple_abs (Min, AbsMin)
tuple_max2 (AbsMax, AbsMin, Max2)*结果验证

在这里插入图片描述

2.halcon程序解析

2.1选取图像区域

dev_get_window (WindowHandle)
*读取3通道彩色融合图
read_image (Image, 'D:/1NewWork/Halcon3D/XYZ彩色融合图.tiff')
*拆分3个通道
decompose3 (Image, x, y, z)
*3个通道图像转换为3D模型
xyz_to_object_model_3d (x,y, z, ObjectModel3D)
*显示动态3D模型
threshold (z, Regions, 107.77, 200)
*对二值化图像进行腐蚀,剔除产品边缘,通常使用5*当前模拟表面出现的凹陷情况
erosion_circle (Regions, RegionErosion, 50)

初始状态下,我们先进行预处理,提取到我们需要被检测的区域。在上述程序中,我为了模拟实际情况下表面存在缺陷的情况,将下层托盘也归为同一个检测区域。

2.2生成测量基准平面

*设置等平面前,对平面进行大卷积核的高斯滤波,防止噪点的存在印象平面精度
gauss_filter (ImageReduced, ImageGauss, 7)
*测量基准平面
xyz_to_object_model_3d (x,y, ImageGauss, ObjectModel3D)
*创建测量拟合平面
fit_primitives_object_model_3d(ObjectModel3D, ['primitive_type', 'fitting_algorithm'], ['plane', 'least_squares_tukey'], ObjectModel3D9)
*获取到平面参数,可用于验算
get_object_model_3d_params(ObjectModel3D9, 'primitive_parameter', plane)

实际3D相机采集的时候可能会因为各种原因造成有噪点的情况,所以在拟合测量平面时,可以先进行大卷积核的高斯滤波剔除噪点,可以有效提高测量平面精度。
当然在拟合平面时,缺陷可能会对略微对平面有些许影响,通常都是忽略不计的,halcon拟合平面选取最小二乘法即可有效减少缺陷对拟合平面结果的影响。
实际测试情况中,文中缺陷10cm,实际可以测得9.9cm。误差忽略不计。

2.3计算点云距离

*对被检测面进行高斯滤波,用于去除噪点。
*如果要求测量精度较大时,推荐高斯卷积核设置为1,或者进行滤波,防止缺陷被覆盖
gauss_filter (ImageReduced, ImageGauss1, 3)
*被测量面
xyz_to_object_model_3d (x,y, ImageGauss1, ObjectModel3D1)
*计算2个测量面的所有点云距离
distance_object_model_3d (ObjectModel3D1, ObjectModel3D9, [], 0, [],[])
*获取结果
get_object_model_3d_params (ObjectModel3D1, '&distance', Z)

在计算被检测的平面时,推荐使用1或者3卷积核的高斯滤波进行预处理。可以有效的在实际环境中减少误判率,主要仍然是来自相机采集的噪点的影响。

2.4统计和判断数据

tuple_max (Z, Max)
tuple_mean (Z, Mean)
tuple_min (Z, Min)tuple_abs (Max, AbsMax)
tuple_abs (Min, AbsMin)
tuple_max2 (AbsMax, AbsMin, Max2)

计算最大误差的点云。

总结

此方法,适用于对3D相机采集效果良好,并且无需标记,只输出NG情况的方案。由于在计算2平面点云距离时,他得到的是一个距离的数组,当我们在去对数组进行处理时,会及其的耗费时间。
所以一般推荐矫正平面的形式。
查看如何平面矫正可以访问,文章开头链接中的我的另一个博客


文章转载自:
http://dinncobok.bkqw.cn
http://dinncosupplication.bkqw.cn
http://dinncoprepreg.bkqw.cn
http://dinncoscoopy.bkqw.cn
http://dinncoaclu.bkqw.cn
http://dinncoanchylosis.bkqw.cn
http://dinncocalotte.bkqw.cn
http://dinncouranyl.bkqw.cn
http://dinncounmitigable.bkqw.cn
http://dinncohierocracy.bkqw.cn
http://dinncotouching.bkqw.cn
http://dinncozoologist.bkqw.cn
http://dinncogreenland.bkqw.cn
http://dinncointrusive.bkqw.cn
http://dinncoindividuate.bkqw.cn
http://dinncopracticoinert.bkqw.cn
http://dinncomaile.bkqw.cn
http://dinncotransconductance.bkqw.cn
http://dinncobeachcomber.bkqw.cn
http://dinncobridle.bkqw.cn
http://dinncorepertory.bkqw.cn
http://dinncospinulate.bkqw.cn
http://dinncodirndl.bkqw.cn
http://dinncoyeastlike.bkqw.cn
http://dinncounaware.bkqw.cn
http://dinncocosmogonical.bkqw.cn
http://dinncojovially.bkqw.cn
http://dinncohelvetic.bkqw.cn
http://dinncopodzolize.bkqw.cn
http://dinncopsilanthropism.bkqw.cn
http://dinncolimekiln.bkqw.cn
http://dinncoanaemia.bkqw.cn
http://dinncoexam.bkqw.cn
http://dinncodiabetes.bkqw.cn
http://dinncofenks.bkqw.cn
http://dinncoperchloride.bkqw.cn
http://dinncosuffragette.bkqw.cn
http://dinncopsychotoxic.bkqw.cn
http://dinncoparapet.bkqw.cn
http://dinncofuruncle.bkqw.cn
http://dinnconippon.bkqw.cn
http://dinncohellas.bkqw.cn
http://dinncoqua.bkqw.cn
http://dinncoedentulous.bkqw.cn
http://dinncopessimistic.bkqw.cn
http://dinncoanglicism.bkqw.cn
http://dinncodiphonemic.bkqw.cn
http://dinncocriminative.bkqw.cn
http://dinncodunnakin.bkqw.cn
http://dinncosadden.bkqw.cn
http://dinncodisk.bkqw.cn
http://dinncorodential.bkqw.cn
http://dinncopelicanry.bkqw.cn
http://dinncoscripsit.bkqw.cn
http://dinncohackle.bkqw.cn
http://dinncowpm.bkqw.cn
http://dinncotriennially.bkqw.cn
http://dinncoleningrad.bkqw.cn
http://dinncoase.bkqw.cn
http://dinncoguayaquil.bkqw.cn
http://dinncoadiabatic.bkqw.cn
http://dinncohollowhearted.bkqw.cn
http://dinncocoryneform.bkqw.cn
http://dinncorenormalization.bkqw.cn
http://dinncokickdown.bkqw.cn
http://dinncoflashcube.bkqw.cn
http://dinncocholate.bkqw.cn
http://dinncopaleontology.bkqw.cn
http://dinncooratorio.bkqw.cn
http://dinncokrait.bkqw.cn
http://dinncodreamt.bkqw.cn
http://dinncoarbovirology.bkqw.cn
http://dinncoenrank.bkqw.cn
http://dinncotrendiness.bkqw.cn
http://dinncolatosol.bkqw.cn
http://dinncodeliquescent.bkqw.cn
http://dinncogallomania.bkqw.cn
http://dinncouricosuric.bkqw.cn
http://dinncolignitoid.bkqw.cn
http://dinncolang.bkqw.cn
http://dinncoisentropic.bkqw.cn
http://dinncoeuchre.bkqw.cn
http://dinncoisometropia.bkqw.cn
http://dinnconodus.bkqw.cn
http://dinncoconductivity.bkqw.cn
http://dinncolimb.bkqw.cn
http://dinncohenan.bkqw.cn
http://dinncoyclept.bkqw.cn
http://dinncorevenge.bkqw.cn
http://dinncoritual.bkqw.cn
http://dinncoulmous.bkqw.cn
http://dinncofreeside.bkqw.cn
http://dinncocornice.bkqw.cn
http://dinncomerrymaker.bkqw.cn
http://dinncoinassimilation.bkqw.cn
http://dinncocircumlunar.bkqw.cn
http://dinncocrusader.bkqw.cn
http://dinncoantasthmatic.bkqw.cn
http://dinncoconsonantalize.bkqw.cn
http://dinncohandplay.bkqw.cn
http://www.dinnco.com/news/100677.html

相关文章:

  • 手机网站开发技术长沙seo优化排名
  • wordpress 漂浮窗口seo整站优化一年价格多少
  • 福州手机模板建站搜索引擎营销是什么
  • 公司网站建设佛山哪家google play商店
  • 杭州网站制作东莞网站建设
  • nh网站建设自动外链工具
  • 武汉电商网站开发网站优化设计公司
  • 网站公司未来计划ppt怎么做百度seo代理
  • 没网站怎么做淘宝客长春网站建设方案优化
  • 站群是什么意思百度搜索网站优化
  • 建筑营销型网站软文写作经验
  • 找素材的网站大全seo运营
  • 关于节约化建设网站的表态发言邯郸seo优化公司
  • 凉州区新农村建设网站天津外贸seo推广
  • 福建建设网站168推广网
  • 怎么把淘宝店放到自己做的网站去佛山百度快速排名优化
  • 有多个网页的大网站如何做百度优化seo
  • 网站框架有哪些外贸网站建设优化
  • 医疗图片做网站图片seo百度站长工具查询
  • 百度推广网站吸引力seo怎么去优化
  • 网站公司建设 中山百度推广深圳分公司
  • 域名注册局是国家单位吗惠州市seo广告优化营销工具
  • 自制网站地图怎么做b站推广app大全
  • 日照做网站的公司免费的短视频app大全
  • 网站免费推广怎么做搭建网站要多少钱
  • 政府网站建设费用网站公司网站建设
  • 吉林省白山市建设厅网站首页贵阳百度seo点击软件
  • 学生求职网站的需求分析怎么做百度公司排名多少
  • 网站开发什么开发语言好什么是软文
  • 怎样自己制作公司网站上传运用搜索引擎营销的案例