当前位置:网站首页>视觉上位系统设计开发(halcon-winform)-6.节点与宫格
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
2022-07-03 15:08:00 【11eleven】
本文将对节点运行的设计进行介绍以及多宫格预览。
1.将halcon的部分算子封装成对应的工具节点,例如,图像读取,颜色转换,模板匹配创建等等,提供输入的设定参数,执行后输出执行结果,大情况下一般上一个节点输出结果为下一个节点的部分输入参数。
例如图像源节点的输入参数是图片地址,或者是相机流,输出是图像与灰度图,还有图片尺寸。
颜色转换节点的输入是原图,输出是多通道的图像。
模板匹配的输入是模板轮廓与图像,输出的是图像的匹配数量与分数等等。
定义好节点的运行参数,输入参数,输出结果,这样再进行循环处理串联的节点时可以根据节点所需去定义输入输出。
2.在一般视觉项目中多个相机检测不同部位的场景很常见,因此在调试以及运行过程中就会需要多宫格显示图像,根据自定义的数量或者相机的个数进行宫格的选择。这里我们用winform中的 TableLayoutPanel 进行自动的划分等分宫格。根据行列的设定进行table的行列添加,最后将节点的图像控件填充到table中
private void SetTableCell(int rows,int columns) {
TablePanel.Controls.Clear();
TablePanel.RowStyles.Clear();
TablePanel.ColumnStyles.Clear();
TablePanel.RowCount = rows;
for (int i = 0; i < rows; i++)
{
TablePanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
}
TablePanel.ColumnCount = columns;
for (int i = 0; i < columns; i++) {
TablePanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
}
}
效果图如下:

边栏推荐
- Web server code parsing - thread pool
- Vs+qt application development, set software icon icon
- Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
- 官网MapReduce实例代码详细批注
- 复合类型(自定义类型)
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
- [combinatorics] permutation and combination (set permutation, step-by-step processing example)
- Detailed comments on MapReduce instance code on the official website
- 基于SVN分支开发模式流程浅析
- Zero copy underlying analysis
猜你喜欢

What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding

C # realizes the login interface, and the password asterisk is displayed (hide the input password)

5.4-5.5

Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial

Unity hierarchical bounding box AABB tree

B2020 points candy

The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!

4-24--4-28

Finally, someone explained the financial risk management clearly

【可能是全中文网最全】pushgateway入门笔记
随机推荐
el-switch 赋值后状态不变化
Didi off the shelf! Data security is national security
Global and Chinese markets for flexible chips 2022-2028: Research Report on technology, participants, trends, market size and share
[ue4] cascading shadow CSM
[pytorch learning notes] datasets and dataloaders
Web server code parsing - thread pool
Yolov5系列(一)——网络可视化工具netron
High quality workplace human beings must use software to recommend, and you certainly don't know the last one
Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Global and Chinese market of lighting control components 2022-2028: Research Report on technology, participants, trends, market size and share
Use of Tex editor
Explanation of time complexity and space complexity
零拷贝底层剖析
C language fcntl function
5.4-5.5
Center and drag linked global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
【微信小程序】WXSS 模板样式
Nppexec get process return code
XWiki安装使用技巧