当前位置:网站首页>视觉上位系统设计开发(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) { }}
边栏推荐
- Stress test WebService with JMeter
- Composite type (custom type)
- mysql innodb 存储引擎的特性—行锁剖析
- redis单线程问题强制梳理门外汉扫盲
- Didi off the shelf! Data security is national security
- [opengl] bone animation blending effect
- Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
- 运维体系的构建
- Web server code parsing - thread pool
- Vs+qt multithreading implementation -- run and movetothread
猜你喜欢
4-29——4.32
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
5-1 blocking / non blocking, synchronous / asynchronous
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
PS tips - draw green earth with a brush
[ue4] HISM large scale vegetation rendering solution
Byte practice plane longitude 2
[engine development] rendering architecture and advanced graphics programming
[ue4] geometry drawing pipeline
随机推荐
Nppexec get process return code
Remote server background hangs nohup
Vs+qt multithreading implementation -- run and movetothread
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
基于SVN分支开发模式流程浅析
My QT learning path -- how qdatetimeedit is empty
使用JMeter对WebService进行压力测试
[graphics] efficient target deformation animation based on OpenGL es 3.0
[pytorch learning notes] transforms
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
Yolov5 series (I) -- network visualization tool netron
Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
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)
Yolov5进阶之七目标追踪最新环境搭建(二)
Puppet自动化运维排错案例
redis单线程问题强制梳理门外汉扫盲
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
. Net six design principles personal vernacular understanding, please correct if there is any error
Use of Tex editor