当前位置:网站首页>视觉上位系统设计开发(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));
}
}
效果图如下:
边栏推荐
- Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
- Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial
- Global and Chinese market of iron free motors 2022-2028: Research Report on technology, participants, trends, market size and share
- Search in the two-dimensional array of leetcode sword offer (10)
- Devaxpress: range selection control rangecontrol uses
- Using Tengine to solve the session problem of load balancing
- [transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
- Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
- 从书本《皮囊》摘录的几个句子
- Redis主从、哨兵、集群模式介绍
猜你喜欢
[set theory] inclusion exclusion principle (complex example)
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
Devaxpress: range selection control rangecontrol uses
Incluxdb2 buckets create database
High quality workplace human beings must use software to recommend, and you certainly don't know the last one
【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention
解决pushgateway数据多次推送会覆盖的问题
How does vs+qt set the software version copyright, obtain the software version and display the version number?
[graphics] efficient target deformation animation based on OpenGL es 3.0
My QT learning path -- how qdatetimeedit is empty
随机推荐
[opengl] face pinching system
[pytorch learning notes] datasets and dataloaders
【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention
[graphics] hair simulation in tressfx
C language dup2 function
Qt—绘制其他东西
[graphics] efficient target deformation animation based on OpenGL es 3.0
mmdetection 学习率与batch_size关系
Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
高并发下之redis锁优化实战
Global and Chinese market of iron free motors 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
Tensor 省略号(三个点)切片
链表有环,快慢指针走3步可以吗
从书本《皮囊》摘录的几个句子
C string format (decimal point retention / decimal conversion, etc.)
C language fcntl function
[ue4] Niagara's indirect draw
406. Reconstruct the queue according to height