当前位置:网站首页>视觉上位系统设计开发(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) { }}
边栏推荐
- Stress test WebService with JMeter
- 406. 根据身高重建队列
- [ue4] Niagara's indirect draw
- Web server code parsing - thread pool
- [graphics] real shading in Unreal Engine 4
- 什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
- Detailed comments on MapReduce instance code on the official website
- C language fcntl function
- Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
- 什么是Label encoding?one-hot encoding ,label encoding两种编码该如何区分和使用?
猜你喜欢
![[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

Besides lying flat, what else can a 27 year old do in life?

What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding

Pytoch deep learning and target detection practice notes

C string format (decimal point retention / decimal conversion, etc.)

Zero copy underlying analysis

PS tips - draw green earth with a brush
![[ue4] Niagara's indirect draw](/img/8a/576022b5d19e1d6422ff0135c50c93.jpg)
[ue4] Niagara's indirect draw

mysql innodb 存储引擎的特性—行锁剖析

5.2-5.3
随机推荐
[opengl] geometry shader
在MapReduce中利用MultipleOutputs输出多个文件
[pytorch learning notes] transforms
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
Yolov5 advanced 8 format conversion between high and low versions
从书本《皮囊》摘录的几个句子
2022/02/14
【日常训练】395. 至少有 K 个重复字符的最长子串
使用JMeter对WebService进行压力测试
How to color ordinary landscape photos, PS tutorial
Explanation of time complexity and space complexity
Yolov5 advanced nine target tracking example 1
cpu飙升排查方法
SQL server安装位置改不了
Search in the two-dimensional array of leetcode sword offer (10)
TPS61170QDRVRQ1
Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
Remote server background hangs nohup
Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
Besides lying flat, what else can a 27 year old do in life?