当前位置:网站首页>视觉上位系统设计开发(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) { }}
边栏推荐
- [transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
- 什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
- [ue4] geometry drawing pipeline
- Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
- 【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
- What is machine reading comprehension? What are the applications? Finally someone made it clear
- Unity hierarchical bounding box AABB tree
- TPS61170QDRVRQ1
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
猜你喜欢

B2020 分糖果

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

运维体系的构建

Unity hierarchical bounding box AABB tree

The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%

Byte practice surface longitude

【pytorch学习笔记】Datasets and Dataloaders

PS tips - draw green earth with a brush
![[set theory] inclusion exclusion principle (complex example)](/img/9a/db5a75e27516378c31531773a8a221.jpg)
[set theory] inclusion exclusion principle (complex example)
![[ue4] cascading shadow CSM](/img/83/f4dfda3bd5ba0172676c450ba7693b.jpg)
[ue4] cascading shadow CSM
随机推荐
[opengl] bone animation blending effect
运维体系的构建
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
How does vs+qt set the software version copyright, obtain the software version and display the version number?
Global and Chinese markets of AC electromechanical relays 2022-2028: Research Report on technology, participants, trends, market size and share
5.2-5.3
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
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
TPS61170QDRVRQ1
Web server code parsing - thread pool
Nppexec get process return code
远程服务器后台挂起 nohup
零拷贝底层剖析
Troubleshooting method of CPU surge
Simulation of LS -al command in C language
ASTC texture compression (adaptive scalable texture compression)
The first character of leetcode sword offer that only appears once (12)
406. 根据身高重建队列
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention