当前位置:网站首页>视觉上位系统设计开发(halcon-winform)-3.图像控件
视觉上位系统设计开发(halcon-winform)-3.图像控件
2022-07-03 15:08:00 【11eleven】
网上找了一款基于halcon开发的图像控件,提供了ROI管理,图像缩放 移动,等对图像的基础操作方法,免去了自行实现的漫长过程。效果如下。
下载链接halconControl
https://download.csdn.net/download/u011540323/85744710



/// <summary>
/// 该类是一个基类,包含处理roi的虚方法。
/// 因此,继承类需要定义/覆盖这些方法,以向ROIController提供关于其形状和位置的必要信息。
/// 该示例项目为矩形、直线、圆和圆弧提供了派生的ROI形状。
/// 要使用其他形状,您必须从基类ROI派生一个新类并实现它的方法。
/// </summary>
public class ROI
{
/// <summary>
/// ROI种类
/// </summary>
public string Type { get; set; }
/// <summary>
/// ROI活动句柄大小
/// </summary>
public double Msize { get; set; } = 8.0;
/// <summary>
/// ROI活动的数量
/// </summary>
public int NumHandles { get; set; }
/// <summary>
/// ROI被选中的活动句柄序号
/// </summary>
public int ActiveHandleIdx { get; set; }
protected ROI() { }
public virtual void createROI(double row, double col) { }
public virtual void createROIPoint(double row,double col) { }
public virtual void createROILine(double row1,double col1,double row2,double col2) { }
public virtual void createROICircle(double row,double col,double radius) { }
public virtual void createROICircularArc(double row, double col, double radius, double startPhi, double extentPhi) { }
public virtual void createROIRectangle1(double row1,double col1,double row2,double col2) { }
public virtual void createROIRectangle2(double row,double col,double phi,double len1,double len2) { }
public virtual void createROIPolyLine(double[] rows,double[] cols) { }
/// <summary>
/// 获取ROI模型信息
/// </summary>
/// <returns></returns>
public virtual HTuple getModelData() { return null; }
/// <summary>
/// 获取ROI区域
/// </summary>
/// <returns></returns>
public virtual HRegion getRegion() { return null; }
/// <summary>
/// 获取(row,col)到最近的ROI活动句柄的距离
/// </summary>
/// <returns></returns>
public virtual double distToClosestHandle(double row,double col) { return 0.0; }
/// <summary>
/// 根据ROI活动句柄的新位置,更新ROI信息
/// </summary>
/// <param name="newRow"></param>
/// <param name="newCol"></param>
public virtual void moveByHandle(double newRow,double newCol) { }
/// <summary>
/// 在给定的HWindow中绘制ROI
/// </summary>
/// <param name="window"></param>
public virtual void draw(HWindow window) { }
/// <summary>
/// 在给定的HWindow中绘制被选中的ROI活动句柄
/// </summary>
/// <param name="window"></param>
public virtual void drawActiveHandle(HWindow window) { }}
边栏推荐
- 5.4-5.5
- Leetcode sword offer find the number I (nine) in the sorted array
- How does vs+qt set the software version copyright, obtain the software version and display the version number?
- 【日常训练】395. 至少有 K 个重复字符的最长子串
- Tensor 省略号(三个点)切片
- 5.2-5.3
- 在MapReduce中利用MultipleOutputs输出多个文件
- TPS61170QDRVRQ1
- Yolov5 series (I) -- network visualization tool netron
- 解决pushgateway数据多次推送会覆盖的问题
猜你喜欢
![[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

Byte practice surface longitude

5.2-5.3
![[graphics] adaptive shadow map](/img/93/a6a3c7716331368c90c2c86da11f55.jpg)
[graphics] adaptive shadow map
![[transform] [NLP] first proposed transformer. The 2017 paper](/img/33/f639ab527d5adedfdc39f8d8117c3e.png)
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team

什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
![[engine development] rendering architecture and advanced graphics programming](/img/a4/3526a4e0f68e49c1aa5ce23b578781.jpg)
[engine development] rendering architecture and advanced graphics programming
![[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention](/img/94/a9c7010fe9f14454469609ac4dd871.png)
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention

Série yolov5 (i) - - netron, un outil de visualisation de réseau

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
随机推荐
从书本《皮囊》摘录的几个句子
[pytorch learning notes] transforms
There are links in the linked list. Can you walk three steps faster or slower
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Stress test WebService with JMeter
The first character of leetcode sword offer that only appears once (12)
Global and Chinese market of lighting control components 2022-2028: Research Report on technology, participants, trends, market size and share
Center and drag linked global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
5.4-5.5
Yolov5 advanced nine target tracking example 1
[pytorch learning notes] datasets and dataloaders
The method of parameter estimation of user-defined function in MATLAB
什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
QT program font becomes larger on computers with different resolutions, overflowing controls
Qt—绘制其他东西
B2020 分糖果
Functional modules and application scenarios covered by the productization of user portraits
Remote server background hangs nohup
[ue4] cascading shadow CSM