完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
|
|
|
|
看看,试试看。学学
|
|
|
|
|
|
可以 加入一个while循环
|
|
|
|
|
|
很好的设计实例,多谢楼主分享
|
|
|
|
|
|
目录
基于Vision Assistant的图像处理实用教程 ............................................................................ 1 版权声明 ............................................................................................................................... 1 读者利益 ............................................................................................................................... 1 感谢 ....................................................................................................................................... 1 前言 ........................................................................................................................................... 2 第一章 基本概念 ................................................................................................................... 11 第一节 数字图像 ............................................................................................................... 11 数字图像的定义 ............................................................................................................. 11 数字图像的属性 ............................................................................................................. 11 图像类型 ......................................................................................................................... 12 图像文件 ......................................................................................................................... 13 NI视觉图像的内部表示................................................................................................. 14 图像边界 ......................................................................................................................... 15 图像掩模 ......................................................................................................................... 17 第二节 显示 ....................................................................................................................... 18 图像显示 ......................................................................................................................... 18 调色板 ............................................................................................................................. 20 无损覆盖 ......................................................................................................................... 27 第三节 ROI兴趣区域 ........................................................................................................ 28 ROI概念 .......................................................................................................................... 28 Point Tool点工具............................................................................................................ 28 Line Tool线工具 ............................................................................................................. 29 Broken Line Tool折线工具 ............................................................................................. 30 Freehand Line Tool徒手线工具 ..................................................................................... 30 Rectangle ROI tool矩形ROI工具 .................................................................................. 31 Rotated Rectangle ROI tool旋转矩形ROI工具 ............................................................ 32 Oval ROI tool椭圆ROI工具 ........................................................................................... 32 Annulus ROI tool环形ROI工具 ..................................................................................... 33 Polygon ROI tool多边形ROI工具 ................................................................................. 34 Freehand Region ROI tool徒手画的区域ROI工具 ....................................................... 34 Magic Wand Tool魔棒工具 ............................................................................................ 35 Tolerance公差 ................................................................................................................ 36 第四节 设置成像系统 ....................................................................................................... 37 成像系统概述 ................................................................................................................. 37 采集图像的质量 ............................................................................................................. 39 第五节 空间标定 ............................................................................................................... 42 标定介绍 ......................................................................................................................... 42 什么时候使用标定 ......................................................................................................... 43 标定算法 ......................................................................................................................... 43 空间标定概念 ................................................................................................................. 45 深入探讨 ......................................................................................................................... 52 第二章 界面与菜单 ............................................................................................................... 58 第一节 启动欢迎界面 ....................................................................................................... 58 第二节 功能界面 ............................................................................................................... 64 Acquire Images采集图像界面 ....................................................................................... 64 Browse Images浏览图像界面 ........................................................................................ 68 Process Images处理图像界面 ....................................................................................... 70 第三节 File文件菜单 ........................................................................................................ 77 Open Image:打开图像 ................................................................................................. 77 Open AVI File:打开AVI文件 ........................................................................................ 78 Save Image:保存图像 ................................................................................................... 78 New Script:新建脚本 ................................................................................................... 82 Open Script:打开脚本 .................................................................................................. 83 Save Script:保存脚本 ................................................................................................... 83 Save Script As:脚本另存为 ........................................................................................... 84 Acquire Image:采集图像 .............................................................................................. 84 Browse Images:浏览图像 ............................................................................................. 84 Process Images:处理图像 ............................................................................................ 85 Print Image:打印图像 .................................................................................................. 85 Preferences:优先参数选择 .......................................................................................... 86 Exit:退出 ....................................................................................................................... 88 第四节 Edit编辑菜单 ........................................................................................................ 88 Edit Step:编辑步骤 ....................................................................................................... 88 Cut:剪切 ....................................................................................................................... 88 Copy:复制 ..................................................................................................................... 89 Paste:粘贴 .................................................................................................................... 89 Delete:删除 .................................................................................................................. 89 第五节 View查看菜单 ...................................................................................................... 89 Zoom In:放大 ................................................................................................................ 90 Zoom Out:缩小 ............................................................................................................. 90 Zoom 1:1:原始图像 ...................................................................................................... 90 Zoom to Fit:适合窗口 .................................................................................................. 90 第六节 Image图像菜单 .................................................................................................... 90 Histgram:直方图 .......................................................................................................... 92 Line Profile:线剖面图 ................................................................................................... 92 Measure:测量 ............................................................................................................... 92 3D View:三维视图 ........................................................................................................ 92 Brightness:亮度 ............................................................................................................ 93 Set Coordinate System:设置坐标系 ............................................................................ 93 Image Mask:图像掩码 ................................................................................................. 93 Geometry:几何 ............................................................................................................. 93 Image Buffer:图像缓存 ................................................................................................ 93 Get Image:获取图像 .................................................................................................... 93 Image Calibration:图像标定 ........................................................................................ 93 Image Correction:图像修正 ......................................................................................... 93 Overlay:覆盖 ................................................................................................................. 93 Run LabVIEW VI:运行LabVIEW VI ................................................................................ 94 第七节 Color彩色菜单 ..................................................................................................... 94 Color Operators:彩色运算 ........................................................................................... 95 Color Plane Extraction:彩色平面抽取 ......................................................................... 95 Color Threshold:彩色阈值 ........................................................................................... 95 Color Classification:彩色分类 ...................................................................................... 96 Color Segmentation:彩色分段 ..................................................................................... 96 Color Matching:彩色匹配 ............................................................................................ 96 Color Location:彩色定位 .............................................................................................. 96 Color Pattern Matching:彩色模式匹配 ....................................................................... 96 第八节 Grayscale灰度菜单 .............................................................................................. 96 Lookup Table:查找表 ................................................................................................... 98 Filters:滤波 ................................................................................................................... 98 Gray Morphology:灰度形态学 ..................................................................................... 98 Gray Morphological Reconstruction:灰度形态学重建 ................................................ 98 FFT Filter:快速傅立叶变换滤波 .................................................................................. 98 Threshold:阈值 ............................................................................................................. 98 Watershed Segmentation:分水岭分割 ........................................................................ 98 Operators:运算 ............................................................................................................. 98 Conversion:转换 ........................................................................................................... 98 Quantify:量化 ............................................................................................................... 99 Centroid:质心 ............................................................................................................... 99 Detect Texture Defects:检查纹理缺陷 ........................................................................ 99 第九节 Binary二值菜单 .................................................................................................... 99 Basic Morphology:基本形态学 .................................................................................. 100 Adv. Morphology:高级形态学 ................................................................................... 100 Binary Morphological Reconstruction:二值形态学重建 ........................................... 100 Particle Filter:粒子滤波 .............................................................................................. 100 Binary Image Inversion:二值图像反转 ...................................................................... 101 Particle Analysis:粒子分析 ......................................................................................... 101 Shape Matching:形状匹配 ......................................................................................... 101 Circle Detection:圆检测 ............................................................................................. 101 第十节 Machine Vision机器视觉菜单 ........................................................................... 101 Edge detector:边缘检测 ............................................................................................ 102 Find Straight Edge:查找直边 ...................................................................................... 103 Adv. Straight Edge:高级直边 ..................................................................................... 103 Find Circular Edge:查找圆边 ...................................................................................... 103 Max Clamp:最大卡尺 ................................................................................................. 103 Clamp(Rake):卡尺(耙子)....................................................................................... 103 Pattern Matching:模式匹配 ....................................................................................... 103 Geometric Matching:几何匹配 .................................................................................. 103 Contour Analysis:轮廓分析 ........................................................................................ 103 Shape Detection:形状检测 ........................................................................................ 103 Golden Template Comparison:极品模板比较 ........................................................... 104 Caliper:测径器、卡尺 ................................................................................................ 104 第十一节 Identification识别菜单 .................................................................................. 104 OCR/OCV:光学字符识别 ............................................................................................ 105 Particle Classification:粒子分类 ................................................................................. 105 Barcode Reader:条码读取 ......................................................................................... 105 2D Barcode Reader:二维条码读取 ............................................................................ 105 第十二节 Tools工具菜单 ............................................................................................... 105 Batch Processing:批量处理 ........................................................................................ 105 PeRFormance Meter:性能测量 ................................................................................... 111 View Measurements:查看测量 .................................................................................. 111 Create LabVIEW VI:创建LabVIEW VI代码 ................................................................ 112 Create C Code:创建C代码 ........................................................................................ 112 Create .NET Code:创建.NET代码 .............................................................................. 113 Activate Vision Assistant:激活视觉助手 .................................................................... 114 第十三节 Help帮助菜单 ................................................................................................. 115 Show Context Help:显示上下文帮助 ........................................................................ 115 Online Help:在线帮助 ................................................................................................ 116 Solution Wizard:解决问题向导 ................................................................................. 116 Patents:专利 ............................................................................................................... 116 About Vision Assistant:关于视觉助手 ....................................................................... 116 第三章 采集图像 ................................................................................................................. 117 第一节 Acquire Image采集图像 ..................................................................................... 118 第二节 Acquire Image(1394,GigE,or USB)采集图像(1394、千兆网、USB) ............ 119 Main选项卡 .................................................................................................................. 120 Attributes属性选项卡 .................................................................................................. 129 第三节 Acquire Image(Smart Camera)从智能相机中采集图像 .................................... 134 第四节 Simulate Acquisition仿真采集 ........................................................................... 136 第四章 浏览图像 ................................................................................................................. 141 第五章 图像处理-Image图像 ............................................................................................. 144 第一节 Histogram直方图 ............................................................................................... 144 Histogram选项卡 ......................................................................................................... 146 Main选项卡 .................................................................................................................. 150 第二节 Line Profile线剖面图 .......................................................................................... 152 Line Profile选项卡 ........................................................................................................ 153 Main选项卡 .................................................................................................................. 155 第三节 Measure测量 ...................................................................................................... 156 Measure选项卡 ............................................................................................................ 158 第四节 3D View三维视图 ............................................................................................... 165 3D View选项卡 ............................................................................................................. 168 第五节 Brightness亮度 ................................................................................................... 173 Brightness选项卡 ......................................................................................................... 175 第六节 Set Coordinate System设定坐标系 ................................................................... 183 Settings选项卡 ............................................................................................................. 185 第七节 Image Mask 图像掩模 ....................................................................................... 191 Mask选项卡 ................................................................................................................. 193 第八节 Geometry几何 .................................................................................................... 203 Geometry选项卡 .......................................................................................................... 205 第九节 Image Buffer图像缓存 ....................................................................................... 219 Image Buffer选项卡 ..................................................................................................... 221 图像缓存实例 ............................................................................................................... 224 第十节 Get Image获取图像 ........................................................................................... 228 Main选项卡 .................................................................................................................. 230 获取图像实例 ............................................................................................................... 232 第十一节 Image Calibration图像标定 ........................................................................... 235 Main选项卡 .................................................................................................................. 236 Calibration Data标定数据选项卡 ................................................................................ 238 图像标定实例 ............................................................................................................... 243 第十二节 Image Correction图像校正 ............................................................................ 244 Image Correction图像校正选项卡 .............................................................................. 246 图像校正实例 ............................................................................................................... 248 第十三节 Overlay覆盖 .................................................................................................... 250 Overlay选项卡 .............................................................................................................. 250 Layer Management选项卡 ........................................................................................... 271 第十四节 Run LabVIEW VI运行LabVIEW函数 .............................................................. 272 Main选项卡 .................................................................................................................. 273 调用VI实例 .................................................................................................................. 276 VI Control选项卡 .......................................................................................................... 277 第六章 图像处理-Color颜色 .............................................................................................. 281 第一节 Color Operators颜色运算 .................................................................................. 281 Color Operators选项卡 ................................................................................................ 284 颜色运算实例 ............................................................................................................... 288 第二节 Color Plane Extraction颜色平面抽取 ................................................................ 305 Extract Color Plane选项卡 ........................................................................................... 306 第三节 Color Threshold颜色阈值 .................................................................................. 318 Color Threshold选项卡 ................................................................................................ 319 颜色阈值实例 ............................................................................................................... 323 第四节 Color Classification颜色分类 ............................................................................. 329 Main选项卡 .................................................................................................................. 329 颜色分类实例 ............................................................................................................... 334 第五节 Color Classification Training Interface颜色分类训练接口 ................................ 340 颜色分类训练接口界面 ............................................................................................... 340 颜色分类训练接口菜单 ............................................................................................... 352 第六节 Color Segmentation颜色分割 ............................................................................ 369 Main选项卡 .................................................................................................................. 371 Settings选项卡 ............................................................................................................. 372 Pixel Mapping选项卡 ................................................................................................... 379 颜色分类实例 ............................................................................................................... 380 第七节 Color Matching颜色匹配 ................................................................................... 381 Template选项卡 ........................................................................................................... 383 Create Template创建模板 ........................................................................................... 384 Settings选项卡 ............................................................................................................. 386 颜色匹配实例 ............................................................................................................... 387 第八节 Color Location颜色定位 ..................................................................................... 393 Template选项卡 ........................................................................................................... 395 Create Template创建模板 ........................................................................................... 395 Settings选项卡 ............................................................................................................. 402 颜色定位实例 ............................................................................................................... 402 第九节 Color Pattern Matching颜色模式匹配 .............................................................. 404 Template选项卡 ........................................................................................................... 406 Create Template创建模板 ........................................................................................... 407 Settings选项卡 ............................................................................................................. 409 颜色模式匹配实例 ....................................................................................................... 412 |
|
|
|
|
|
960 浏览 2 评论
NI Vision有个图片打不开其他图都能打开(用NI Vision Assistant也打开不了)
1362 浏览 1 评论
labview2015使用Excel报表程序打包生成后打开程序要选一个vi才能使用,否则软件就会报错,这是什么问题?
1925 浏览 2 评论
LabVIEW与单片机无法串口通信 提示串口打开错误 端口设置有问题吗?
1785 浏览 3 评论
2147 浏览 2 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-31 00:27 , Processed in 0.900106 second(s), Total 76, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号