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

边栏推荐
- Besides lying flat, what else can a 27 year old do in life?
- How to color ordinary landscape photos, PS tutorial
- 406. Reconstruct the queue according to height
- Global and Chinese market of postal automation systems 2022-2028: Research Report on technology, participants, trends, market size and share
- Byte practice surface longitude
- "Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
- Global and Chinese markets for transparent OLED displays 2022-2028: Research Report on technology, participants, trends, market size and share
- C language fcntl function
- CentOS7部署哨兵Redis(带架构图,清晰易懂)
- The method of parameter estimation of user-defined function in MATLAB
猜你喜欢

Tencent internship interview sorting

redis缓存穿透,缓存击穿,缓存雪崩解决方案

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

4-33--4-35

Redis主从、哨兵、集群模式介绍

Yolov5系列(一)——網絡可視化工具netron

复合类型(自定义类型)
![[engine development] in depth GPU and rendering optimization (basic)](/img/71/abf09941eb06cd91784df50891fe29.jpg)
[engine development] in depth GPU and rendering optimization (basic)

Composite type (custom type)

Devaxpress: range selection control rangecontrol uses
随机推荐
Nppexec get process return code
Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
Pytoch deep learning and target detection practice notes
[ue4] Niagara's indirect draw
【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention
Tensor ellipsis (three points) slice
Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
5.4-5.5
4-20-4-23 concurrent server, TCP state transition;
【日常训练】395. 至少有 K 个重复字符的最长子串
Yolov5系列(一)——網絡可視化工具netron
Using Tengine to solve the session problem of load balancing
Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
My QT learning path -- how qdatetimeedit is empty
"Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
Besides lying flat, what else can a 27 year old do in life?
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry