当前位置:网站首页>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) { }}
边栏推荐
- Center and drag linked global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
- Série yolov5 (i) - - netron, un outil de visualisation de réseau
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
- Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
- redis单线程问题强制梳理门外汉扫盲
- 使用JMeter对WebService进行压力测试
- Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
- socket. IO build distributed web push server
- 视觉上位系统设计开发(halcon-winform)-6.节点与宫格
- High quality workplace human beings must use software to recommend, and you certainly don't know the last one
猜你喜欢

Matplotlib drawing label cannot display Chinese problems

redis缓存穿透,缓存击穿,缓存雪崩解决方案

Characteristics of MySQL InnoDB storage engine -- Analysis of row lock

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

Redis cache penetration, cache breakdown, cache avalanche solution
![[transform] [NLP] first proposed transformer. The 2017 paper](/img/33/f639ab527d5adedfdc39f8d8117c3e.png)
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team

Jvm-03-runtime data area PC, stack, local method stack

整形和浮点型是如何在内存中的存储

Kubernetes 进阶训练营 Pod基础

Dataframe returns the whole row according to the value
随机推荐
【日常训练】395. 至少有 K 个重复字符的最长子串
官网MapReduce实例代码详细批注
Global and Chinese market of trimethylamine 2022-2028: Research Report on technology, participants, trends, market size and share
Incluxdb2 buckets create database
[daily training] 395 Longest substring with at least k repeated characters
App global exception capture
SQL server安装位置改不了
Kubernetes帶你從頭到尾捋一遍
Functional modules and application scenarios covered by the productization of user portraits
Jvm-03-runtime data area PC, stack, local method stack
Jvm-06-execution engine
Yolov5 series (I) -- network visualization tool netron
What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
函数栈帧的创建和销毁
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
Using notepad++ to build an arbitrary language development environment
Influxdb2 sources add data sources
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share