当前位置:网站首页>Visual upper system design and development (Halcon WinForm) -3 Image control
Visual upper system design and development (Halcon WinForm) -3 Image control
2022-07-03 15:19:00 【11eleven】
I found a model based on halcon Developed image control , Provides ROI management , Image zoom Move , And other basic operation methods for images , It avoids the long process of self realization . The effect is as follows .
Download link halconControl
https://download.csdn.net/download/u011540323/85744710



/// <summary>
/// This class is a base class , Including processing roi The virtual method of .
/// therefore , Inherited classes need to be defined / Cover these methods , In order to ROIController Provide necessary information about its shape and position .
/// The example item is rectangular 、 A straight line 、 Circles and arcs provide derived ROI shape .
/// To use other shapes , You must start from the base class ROI Derive a new class and implement its methods .
/// </summary>
public class ROI
{
/// <summary>
/// ROI species
/// </summary>
public string Type { get; set; }
/// <summary>
/// ROI Active handle size
/// </summary>
public double Msize { get; set; } = 8.0;
/// <summary>
/// ROI Number of activities
/// </summary>
public int NumHandles { get; set; }
/// <summary>
/// ROI Sequence number of the selected activity handle
/// </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>
/// obtain ROI Model information
/// </summary>
/// <returns></returns>
public virtual HTuple getModelData() { return null; }
/// <summary>
/// obtain ROI Area
/// </summary>
/// <returns></returns>
public virtual HRegion getRegion() { return null; }
/// <summary>
/// obtain (row,col) To the nearest ROI Distance of active handle
/// </summary>
/// <returns></returns>
public virtual double distToClosestHandle(double row,double col) { return 0.0; }
/// <summary>
/// according to ROI New location of the active handle , to update ROI Information
/// </summary>
/// <param name="newRow"></param>
/// <param name="newCol"></param>
public virtual void moveByHandle(double newRow,double newCol) { }
/// <summary>
/// In the given HWindow Draw in ROI
/// </summary>
/// <param name="window"></param>
public virtual void draw(HWindow window) { }
/// <summary>
/// In the given HWindow Draw the selected ROI Active handle
/// </summary>
/// <param name="window"></param>
public virtual void drawActiveHandle(HWindow window) { }}
边栏推荐
- Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
- Final review points of human-computer interaction
- Yolov5 advanced seven target tracking latest environment construction (II)
- Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
- MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
- Popular understanding of linear regression (I)
- Jvm-02-class loading subsystem
- [transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
- 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
- Redis主从、哨兵、集群模式介绍
猜你喜欢

qt使用QZxing生成二维码

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

北京共有产权房出租新规实施的租赁案例

解决pushgateway数据多次推送会覆盖的问题

Kubernetes will show you from beginning to end

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

什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式

运维体系的构建

What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry

Jvm-04-runtime data area heap, method area
随机推荐
Redis cache penetration, cache breakdown, cache avalanche solution
Nppexec get process return code
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
Using notepad++ to build an arbitrary language development environment
【pytorch学习笔记】Transforms
The method of parameter estimation of user-defined function in MATLAB
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
Global and Chinese market of trimethylamine 2022-2028: Research Report on technology, participants, trends, market size and share
Redis lock Optimization Practice issued by gaobingfa
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
Use of Tex editor
【可能是全中文网最全】pushgateway入门笔记
Using Tengine to solve the session problem of load balancing
Série yolov5 (i) - - netron, un outil de visualisation de réseau
视觉上位系统设计开发(halcon-winform)
Summary of JVM knowledge points
视觉上位系统设计开发(halcon-winform)-5.相机
Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
Yolov5 series (I) -- network visualization tool netron
XWiki Installation Tips