当前位置:网站首页>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) { }}
边栏推荐
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- [transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
- Apache ant extension tutorial
- Popular understanding of linear regression (I)
- 基于SVN分支开发模式流程浅析
- 官网MapReduce实例代码详细批注
- Final review points of human-computer interaction
- Mmdetection learning rate and batch_ Size relationship
- Série yolov5 (i) - - netron, un outil de visualisation de réseau
- App global exception capture
猜你喜欢

基础SQL教程

运维体系的构建

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

Finally, someone explained the financial risk management clearly

Kubernetes 进阶训练营 Pod基础

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

Functional modules and application scenarios covered by the productization of user portraits

mysql innodb 存储引擎的特性—行锁剖析
![Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)](/img/cd/2e4f5884d034ff704809f476bda288.png)
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)

Jvm-05-object, direct memory, string constant pool
随机推荐
Incluxdb2 buckets create database
第04章_逻辑架构
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
Yolov5 advanced 8 format conversion between high and low versions
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
The method of parameter estimation of user-defined function in MATLAB
XWiki安装使用技巧
Final review points of human-computer interaction
[pytorch learning notes] datasets and dataloaders
Kubernetes帶你從頭到尾捋一遍
Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
Jvm-05-object, direct memory, string constant pool
[probably the most complete in Chinese] pushgateway entry notes
Summary of JVM knowledge points
el-switch 赋值后状态不变化
Matlab r2011b neural network toolbox precautions
Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share