当前位置:网站首页>视觉上位系统设计开发(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));
}
}
效果图如下:

边栏推荐
- How to color ordinary landscape photos, PS tutorial
- XWiki安装使用技巧
- [pytorch learning notes] transforms
- Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
- Série yolov5 (i) - - netron, un outil de visualisation de réseau
- High quality workplace human beings must use software to recommend, and you certainly don't know the last one
- [graphics] hair simulation in tressfx
- Tensor ellipsis (three points) slice
- Yolov5 advanced nine target tracking example 1
- Using Tengine to solve the session problem of load balancing
猜你喜欢

Introduction to opengl4.0 tutorial computing shaders
![[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer](/img/9b/6ca8375ef8689a80d437665909ae30.png)
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer

【微信小程序】WXSS 模板样式

远程服务器后台挂起 nohup

4-24--4-28

北京共有产权房出租新规实施的租赁案例

4-33--4-35

4-20-4-23 concurrent server, TCP state transition;

High quality workplace human beings must use software to recommend, and you certainly don't know the last one

Vs+qt application development, set software icon icon
随机推荐
复合类型(自定义类型)
Yolov5系列(一)——网络可视化工具netron
Mmdetection learning rate and batch_ Size relationship
C language fcntl function
Class part2
【pytorch学习笔记】Transforms
What is machine reading comprehension? What are the applications? Finally someone made it clear
远程服务器后台挂起 nohup
How does vs+qt set the software version copyright, obtain the software version and display the version number?
TPS61170QDRVRQ1
Yolov5进阶之八 高低版本格式转换问题
Relationship between truncated random distribution and original distribution
Yolov5进阶之九 目标追踪实例1
Yolov5进阶之七目标追踪最新环境搭建(二)
4-33--4-35
.NET六大设计原则个人白话理解,有误请大神指正
基于SVN分支开发模式流程浅析
Global and Chinese markets of AC electromechanical relays 2022-2028: Research Report on technology, participants, trends, market size and share
[pytorch learning notes] transforms
使用Tengine解决负载均衡的Session问题