当前位置:网站首页>视觉上位系统设计开发(halcon-winform)-3.图像控件
视觉上位系统设计开发(halcon-winform)-3.图像控件
2022-07-03 15:08:00 【11eleven】
网上找了一款基于halcon开发的图像控件,提供了ROI管理,图像缩放 移动,等对图像的基础操作方法,免去了自行实现的漫长过程。效果如下。
下载链接halconControlhttps://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) { }}
边栏推荐
- 从书本《皮囊》摘录的几个句子
- [attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
- mmdetection 学习率与batch_size关系
- XWiki安装使用技巧
- [engine development] in depth GPU and rendering optimization (basic)
- el-switch 赋值后状态不变化
- 开启 Chrome 和 Edge 浏览器多线程下载
- Composite type (custom type)
- .NET六大设计原则个人白话理解,有误请大神指正
- 406. 根据身高重建队列
猜你喜欢
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%
【可能是全中文网最全】pushgateway入门笔记
Influxdb2 sources add data sources
运维体系的构建
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
基础SQL教程
CentOS7部署哨兵Redis(带架构图,清晰易懂)
[graphics] hair simulation in tressfx
Byte practice surface longitude
随机推荐
Center and drag linked global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
Incluxdb2 buckets create database
[graphics] real shading in Unreal Engine 4
B2020 分糖果
Yolov5进阶之九 目标追踪实例1
Global and Chinese markets for indoor HDTV antennas 2022-2028: Research Report on technology, participants, trends, market size and share
Relationship between truncated random distribution and original distribution
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Nppexec get process return code
Yolov5 advanced nine target tracking example 1
4-29——4.32
Global and Chinese market of trimethylamine 2022-2028: Research Report on technology, participants, trends, market size and share
[graphics] adaptive shadow map
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
官网MapReduce实例代码详细批注
mmdetection 学习率与batch_size关系
Vs+qt application development, set software icon icon
Besides lying flat, what else can a 27 year old do in life?
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03