3.3. Object Model

Halcon 3D算子避坑指南:`connection_object_model_3d`和`select_object_model_3d`参数怎么调才高效? 本文深入解析Halcon 3D算子`connection_object_model_3d`和`select_object_model_3d`的参数调优技巧,涵盖点云分割与筛选的高效方法。通过工业检测场景实例,详细探讨特征参数选择、阈值动态调节及特征组合策略,帮助工程师提升3D视觉检测的准确性和效率。 阅读详情

The devices, queues, and other entities in Vulkan are represented by Vulkan objects.

Vulkan的对象包含设备,队列和其他的实体。

At the API level, all objects are referred to by handles.

在API的层级,所有的对比通过句柄被访问。

There are two classes of handles, dispatchable and nondispatchable.

有两种类型的句柄,可以分发和不可以分发。

Dispatchable handle types are a pointer to an opaque type.

可以分发的句柄类型是一个模糊类型的指针。

This pointer may be used by layers as part of intercepting API commands, and thus each API command takes a dispatchable type as its first parameter.

这个指针被layer用来拦截API命令,和每一个API的命令可以使用disapatchable类型作为它的第一个参数。

Each object of a dispatchable type must have a unique handle value during its lifetime.

每一个dispatchable的对象整个生命周期只能有唯一的句柄。

Non-dispatchable handle types are a 64-bit integer type whose meaning is implementation dependent.

non-dispatcable句柄类型是实现独立的64位整形类型。

If the privateData feature is enabled for a VkDevice, each object of a non-dispatchable type created on that device must have a handle value that is unique among objects created on that device, for the duration of the object’s lifetime.

如果VkDevice的privateData的特性启用的,每一个non-dispatchable类型的必须有一个唯一的句柄。

Otherwise, non-dispatchable handles may encode object information directly in the handle rather than acting as a reference to an underlying object, and thus may not have unique handle values.

否则,non-dispatchable句柄可以直接在句柄中编码对象信息而不是作为隐含对象的应用,和因此无需句柄值。

If handle values are not unique, then destroying one such handle must not cause identical handles of other types to become invalid, and must not cause identical handles of the same type to become invalid if that handle value has been created more times than it has been destroyed.

如果句柄不是唯一的,销毁一个这样的句柄不应该会引起其他类型的无效,和不应该引起同类型完全相同的句柄无效。

All objects created or allocated from a VkDevice (i.e. with a VkDevice as the first parameter) are private to that device, and must not be used on other devices.

一个VkDevice分配或创建的对象仅仅对该设备有效,不能用于其他的设备。

3.3.1. Object Lifetime

Objects are created or allocated by vkCreate* and vkAllocate* commands, respectively.

对象使用vkCreate*来创建,使用vkAllocate*来分配对象。

Once an object is created or allocated, its “structure” is considered to be immutable, though the contents of certain object types is still free to change.

一旦对象被创建或者被分配,它的结构体是不不变的,尽管某些对象的类型的内容仍然可以自由改变。

Objects are destroyed or freed by vkDestroy* and vkFree* commands, respectively.

对象使用vkDestory进行销毁,使用vkFree*来释放对象。

Objects that are allocated (rather than created) take resources from an existing pool object or memory heap, and when freed return resources to that pool or heap.

被分配的对象不是创建的,从已经存在的对象池或者内存堆中获取资源,当被释放返回资源到资源池中。

While object creation and destruction are generally expected to be low-frequency occurrences during runtime, allocating and freeing objects can occur at high frequency.

然而当对象呗创建和销毁的次数希望尽量少,分配和释放可以发生很多次。

Pool objects help accommodate improved performance of the allocations and frees.

对象池帮忙提升性能。

It is an application’s responsibility to track the lifetime of Vulkan objects, and not to destroy them while they are still in use.

应用程序应该跟踪vulkan对象的声明周期,如果是活动的情况下,不应该销毁它。

The ownership of application-owned memory is immediately acquired by any Vulkan command it is passed into.

Vulkan命令需要应用程序内存的所有权被传递进去。

Ownership of such memory must be released back to the application at the end of the duration of the command, so that the application can alter or free this memory as soon as all the commands that acquired it have returned.

在命令执行完,内存的所有权必须返回给应用程序,以至于应用程序可以尽早的修改或者释放内存。

The following object types are consumed when they are passed into a Vulkan command and not further accessed by the objects they are used to create.

如下的对象类型被消耗,不应该进一步被访问由创建他们的对象。

They must not be destroyed in the duration of any API command they are passed into:

他们不应该被销毁在任何API的命令被传递期间:

• VkShaderModule

• VkPipelineCache

A VkRenderPass or VkPipelineLayout object passed as a parameter to create another object is not further accessed by that object after the duration of the command it is passed into.

一个VkRenderPass或者vkPipelineLayout对象作为参数被传递来创建另外一个对象时,它不可以被访问在它传递后。

A VkRenderPass used in a command buffer follows the rules described below.

一个VkRenderPass被使用在command buffer遵循如下的规则.

VkDescriptorSetLayout objects may be accessed by commands that operate on descriptor sets allocated using that layout, and those descriptor sets must not be updated with vkUpdateDescriptorSets after the descriptor set layout has been destroyed.

操作descriptor集合的命令可以访问VkDescriptorSetLayout对象,当descriptor被销毁后vkUpdateDecriptorSets不可以更新。

Otherwise, a VkDescriptorSetLayout object passed as a parameter to create another object is not further accessed by that object after the duration of the command it is passed into.

一个vkDescriptorSetLayout对象作为参数创建另外一个对象时,将不会被访问。

The application must not destroy any other type of Vulkan object until all uses of that object by the device (such as via command buffer execution) have completed.

直到设备使用完,应用程序不会销毁任何其他类型的vulkan对象。

The following Vulkan objects must not be destroyed while any command buffers using the object are in the pending state:

如果comman buffer处于pending状态,下面的vulkan对象不应该被销毁:

• VkEvent • VkQueryPool 

VkBuffer

• VkBufferView

• VkImage

• VkImageView

• VkPipeline

• VkSampler

• VkSamplerYcbcrConversion

• VkDescriptorPool

• VkFramebuffer

• VkRenderPass

• VkCommandBuffer

• VkCommandPool

• VkDeviceMemory

• VkDescriptorSet

Destroying these objects will move any command buffers that are in the recording or executable state, and are using those objects, to the invalid state.

销毁上面对象会让他们从recording或者执行状态转移到无效状态。

The following Vulkan objects must not be destroyed while any queue is executing commands that use the object:

当队列正在使用这些对象时,下面的对象不能被销毁。

• VkFence

• VkSemaphore

• VkCommandBuffer

• VkCommandPool

In general, objects can be destroyed or freed in any order, even if the object being freed is involved in the use of another object (e.g. use of a resource in a view, use of a view in a descriptor set, use of an object in a command buffer, binding of a memory allocation to a resource), as long as any object that uses the freed object is not further used in any way except to be destroyed or to be reset in such a way that it no longer uses the other object (such as resetting a command buffer).

一般来说,对象可以以任何顺序销毁或者被释放,尽管被释放的对象正在被其他的对象使用。

If the object has been reset, then it can be used as if it never used the freed object.

如果对象被重置,然后他可以它可以像从未使用过释放的对象一样使用。

An exception to this is when there is a parent/child relationship between objects.

一个例外是当有一个parenent/child关系在这些对象之间。

In this case, the application must not destroy a parent object before its children, except when the parent is explicitly defined to free its children when it is destroyed (e.g. for pool objects, as defined below).

这种情况下,应用程序一定不能先于子对象销毁父对象。

VkCommandPool objects are parents of VkCommandBuffer objects.

VKCommandpool对象时VkCommandBuffer对象的父对象。

VkDescriptorPool objects are parents of VkDescriptorSet objects.

VKDescriptorPool对象时VkDescriptorSet对象的父对象。

VkDevice objects are parents of many object types (all that take a VkDevice as a parameter to their creation).

VKDevice是很多对象类型的父对象。

The following Vulkan objects have specific restrictions for when they can be destroyed:

下面的对象销毁时有特别的限制:

• VkQueue objects cannot be explicitly destroyed. Instead, they are implicitly destroyed when the

VkDevice object they are retrieved from is destroyed.

VKqueue对象不能被显示销毁。相反,当VkDevice对象被销毁,他们可以被隐含销毁。

Destroying a pool object implicitly frees all objects allocated from that pool.

销毁一个pool对象隐含销毁了从这个pool分配的所有的对象。

Specifically, destroying VkCommandPool frees all VkCommandBuffer objects that were allocated from it, and destroying VkDescriptorPool frees all VkDescriptorSet objects that were allocated from it.

特别,销毁VkCommandPool相当于销毁了从它分配的所有的VkCommandBuffer,销毁VkDescriptorPool相当于销毁了所有从它分配的VkDescriptorSet。

VkDevice objects can be destroyed when all VkQueue objects retrieved from them are idle, and all objects created from them have been destroyed. This includes the following objects:

VKDevice对象可以被销毁,当所有的VkQueue对象是idle,和所有的从它中创建的对象被销毁。它包括如下的对象:

◦ VkFence ◦ VkSemaphore ◦ VkEvent ◦ VkQueryPool ◦ VkBuffer ◦ VkBufferView ◦ VkImage ◦ VkImageView ◦ VkShaderModule ◦ VkPipelineCache ◦ VkPipeline ◦ VkPipelineLayout ◦ VkSampler ◦ VkSamplerYcbcrConversion ◦ VkDescriptorSetLayout ◦ VkDescriptorPool ◦ VkFramebuffer ◦ VkRenderPass ◦ VkCommandPool ◦ VkCommandBuffer ◦ VkDeviceMemory

• VkPhysicalDevice objects cannot be explicitly destroyed. Instead, they are implicitly destroyed when the VkInstance object they are retrieved from is destroyed.

VkPhsicalDevice对象不能被显式销毁。相反,当所有的VkInstance对象从它中分配的被销毁时,他们可以隐式销毁。

• VkInstance objects can be destroyed once all VkDevice objects created from any of its VkPhysicalDevice objects have been destroyed

一旦所有的从VkPhysicalDevice对象分配的VKDevice对象被销毁,VKInstance对象可以被销毁。

3.3.2. External Object Handles

As defined above, the scope of object handles created or allocated from a VkDevice is limited to that logical device.

如上面定义,从VKDevice创建或者分配的对象句柄的使用范围被限制到那个逻辑设备。

Objects which are not in scope are said to be external.

对象不在那个范围被认为是外部的external。

To bring an external object into scope, an external handle must be exported from the object in the source scope and imported into the destination scope.

为了引入外部的对象到这个范围,一个外部的句柄必须从源范围导出和在目的范围进行导入。

Halcon点云降噪实战:用`get_object_model_3d_params`和`select_points_object_model_3d`搞定稀疏离群点 本文详细介绍了Halcon中点云降噪的实战技巧,重点解析了`get_object_model_3d_params`和`select_points_object_model_3d`算子的应用。通过动态阈值计算和多尺度降噪技术,有效解决工业质检和三维重建中的稀疏离群点问题,提升点云数据质量。文章还提供了参数调优策略和典型问题排查指南,助力实现工业级解决方案。 阅读详情

相关推荐

双向绑定,v-model原理,vue2/3双向绑定的区别;

在 Vue2 中, v-model其实是一个语法糖,它背后本质上是包含两个操作:1.v-bind绑定一个value属性2.v-on指令给当前元素绑定input事件在 Vue3 中, 在自定义组件上使用v-model, 在vue2的基础上还相当于传递一个modelValue属性, 同时触发一个。

青山不改,绿水长流。 642

Vulkan Loader Specification and Architecture Overview

转一篇Lunarg的关于Vulkan的Loader和Layer架构文章。 https://vulkan.lunarg.com/app/doc/1.0.13.0/windows/LoaderAndLayerInterface.html Vulkan的Loader是开源的,Lunarg的SDK里有源代码;github上也有:https://github.com/KhronosGroup/Vu

蓝天和白云的博客 2795

AS_Object_models软件包安装教程.zip

本文还有配套的精品资源,点击获取 简介:此ZIP压缩包包含了AS_Object_models软件包的0.9.1版本,这是一个适用于Python 3的独立平台软件包,它可以通过Python的包管理工具pip进行安装。该软件包以.whl格式提供了预编译的模块,使得安装过程更为简便快捷,无需进行编译步骤。压缩包中还包含了详细的使用说明文档,确保用户能正确安装和使用该软件包。该软件...

weixin_36123300的博客 868

Vulkan® A Specification::Chapter 2::Fundamentals(基本概念)

原文链接:https://vulkan.lunarg.com/doc/view/1.2.131.2/windows/chunked_spec/chap2.html#fundamentals 更新记录: 2020/4/8:: 2基本概念 2.1本地和设备环境 2.2执行模式 2基本概念 这一章介绍Vulkan的架构、执行模式(execution model)、API、队列(queu...

AvatarForTest的博客 1699

交通小白首投TRB就中Oral?我的完整时间线与避坑指南(附Editorial Manager实操截图)

本文详细解析了交通领域新手如何高效完成TRB国际会议投稿的全流程,从选题策略到投稿系统实操,再到评审过程解析和常见误区避坑指南。特别针对初次投稿者提供了实用建议,包括时间规划、选题考量、Editorial Manager系统操作技巧,以及如何应对评审意见。文章还分享了从录用到会议参与的关键步骤,帮助研究者提升投稿成功率。

weixin_27303545的博客 389

CTP开发实战:如何高效处理预埋单与委托单的完整流程(附代码示例)

本文深入探讨了CTP开发中预埋单与委托单的完整处理流程,从订单生命周期理解、核心代码实现到异步事件处理与系统健壮性构建。通过详细的代码示例和状态机分析,为开发者提供了构建高可靠订单处理系统的实战指南,重点解决了状态同步、异常恢复等关键工程挑战。

weixin_29234239的博客 118

object Model(对象模型):关于vptr和vtbl

这里设置了3个class,A,B,C之间是继承的关系,A有之间的data1和2,B继承了A,有了A的数据,然后加上自己的数据,C也是。 如果一个类里面有一个虚函数,这个对象里面就会多了一个指针,指向虚函数表。 如果父类有虚函数,子类一定有,会继承父类虚函数的调用权,这时候以B为例子,B推翻了vfunc1()重载了,留下了vfunc2(). vptr关联了vtbl(里面都是函数指针)然后关联了

cbf9526的博客 1266

MiniMax H3本地部署实战:ComfyUI整合包安装与提速插件验证指南

在AIGC工具链快速演进的当下,本地部署内容生成模型成为许多创作者和开发者的关注焦点。本地部署意味着数据不出本机、可按需定制工作流,还能规避云端排队与外部依赖,其核心价值在于为内容生产提供可控、私密且可编程的生成环境。ComfyUI作为模块化节点式AI绘画工具,凭借灵活的工作流编排和API接口能力,成为承载这类模型的热门平台。MiniMax H3作为支持文本、参考图等多种输入的内容生成模型,与ComfyUI结合后,既适合个人进行概念验证,也能用于团队私有化流程搭建。实际落地过程中,中文整合包显著降低了环境配

weixin_29042035的博客 298

Component Object Model

COM:The Component Object Model 组件对象模型 COM组件是遵循COM规范编写、以Win32动态链接库(DLL)或可执行文件(EXE)形式发布的可执行二进制代码,能够满足对组件架构的所有需求。遵循COM的规范标准,组件与应用、组件与组件之间可以互操作,极其方便地建立可伸缩的应用系统。COM是一种技术标准,其商业品牌则称为ActiveX。 近几年来,组件在软件

生命不息,奋斗不止 3672

基于Arduino与脑电模块的意念控制LED灯环实现

脑机接口(BCI)技术通过采集和处理脑电信号,实现人脑与外部设备的直接交互。其核心原理是利用传感器捕捉大脑活动产生的微弱电信号,经过放大、滤波和特征提取,转换为可识别的指令。这项技术在医疗康复、神经反馈训练和人机交互等领域具有重要价值。本文聚焦于一个具体的工程实践:使用消费级NeuroSky TGAM模块采集专注度与放松度数据,通过Arduino平台解析信号,并驱动WS2812B LED灯环实现实时可视化反馈。项目涵盖了硬件选型、电路搭建、数据解析和光效映射等关键环节,为脑机接口入门和嵌入式开发提供了完整的

weixin_28721917的博客 286

GD32F130之USART多机通信

简介 在多机通信中,一个从机应该只接收它需要接收的数据,且只应该在它需要接收数据时才检测串口。而始终接收RX线上的数据对从机来说是一种负担。 多机通信硬件设计 远距离方案:RS485 板级方案: 静默模式 静默模式有什么作用? 答:如果 USART 处于静默模式,所有的接收状态标志位将不会被置位。 如何进入静默模式? 答:软件可以通过将 USART_CMD 寄存器中MMCMD 位置 1 使 USART 进入静默模式。 如何从静默模式中唤醒? 答:有两种方式可选,①检测到总线

luliplus的博客 302

visualize_object_model_3d显示3维图像的问题

原问题: 我把halcon代码导出成C++代码。并在QT中调用。 其中用到了 visualize_object_model_3d 但是,目前只能单独弹出一个窗口来显示3维图像,不能在QT的控件框中显示。 像这样单独在一个窗口中显示,是可以的。 但是像这样,在QT生成的框中显示就不行。程序就一直卡住不动了。 ...

dayao8092的博客 4532

vscode配置matlab工作环境

前面有两篇文章我们分别讲了在vscode里面如何配置C语言环境和python环境,那两篇文章总体来说比较复杂,当然这篇也有许多有趣的问题。 附上链接: 文章目录matlab简介基本要求code runner插件与matlab相关的插件添加路径小结code runner是否支持更多语言更多选择另一个选择 matlab简介 MATLAB是美国MathWorks公司出品的商业数学软件,用于数据分析、无线通信、深度学习、图像处理与计算机视觉、信号处理、量化金融与风险管理、机器人,控制系统等领域。 MATLAB是ma

Cachel Wood的博客 4543

XML DOM Object Model in .NET [3/3] - Samples

http://blog.tangcs.com/2008/09/04/dotnet-xml-dom-object-model-3/ 转载于:https://www.cnblogs.com/WarrenTang/archive/2008/09/04/1284183.html

weixin_30763455的博客 71

【VTKExamples】PolyData-1:: CellEdgeNeighbors & CellPointNeighbors 检索Cell边相邻的Cells & 检索Cell点相邻的Cells

本文主要分享VTKExample中两个样例CellEdgeNeighbors.cxx & CellPointNeighbors.cxx,了解VTK中如何对Cell进行邻域检索!输入模型 基于Edge检索结果 基于Point检索结果目录前言1. 基于Edge检索核心代码2.基于Point检索核心代码3.基于Edge检索样例代码4. 基于Point检索样例代码1.

qq_40041064的博客 674

使用OpenGL加载和显示DXF格式的3D模型文件编程

这样,我们就完成了使用OpenGL加载和显示DXF格式的3D模型文件的编程。通过实现加载函数和绘制回调函数,我们能够读取DXF文件的数据并使用OpenGL绘制出来。请注意,这只是一个简单的例子,仅涵盖了基本的加载和显示功能。在本文中,我们将探讨如何使用OpenGL编程加载和显示DXF(Drawing Exchange Format)格式的3D模型文件。DXF是一种通用的CAD(计算机辅助设计)文件格式,常用于存储和交换2D和3D图形数据。使用OpenGL加载和显示DXF格式的3D模型文件编程。

2301_79331421的博客 413

XML DOM Object Model in .NET [2/3]

http://blog.tangcs.com/2008/09/04/dotnet-xml-dom-object-model-2/ 转载于:https://www.cnblogs.com/WarrenTang/archive/2008/09/04/1284164.html

weixin_30663391的博客 92

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

XML DOM Object Model in .NET [1/3]

http://blog.tangcs.com/2011/06/02/dotnet-xml-dom-object-model-1/ 转载于:https://www.cnblogs.com/WarrenTang/archive/2008/09/04/1284160.html

weixin_30815469的博客 81

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

WSS 3.0 Object Model

1.SPWebApplication包含网站集,是网站集的容器。 获取当前系统下所有Web应用程序的集合: SPWebApplicationCollection webs = SPWebService.ContentService.WebApplications;2.SPSite和SPWeb (1).SPSite:WebApplication下的网站集。SPSite的RootWeb代表网站集...

weixin_30354675的博客 72

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

【四】3D Object Model之创建Creation——write_object_model_3d()算子

3D Object Model之创建Creation——write_object_model_3d()算子

cqy阳的博客 1903

Inside The C++ object model:note(3)

程序转化语义学主题:在对象的初始化时,编译器对用户程序的转化以及优化处理。一,明确的初始化操作       当用户使用显示初始化的时候,编译器会进行对象重新定义,并调用对应的拷贝构造函数。例如,已知X x0; 的时候,我们使用的时候,        编译器会剖开成这样:X x1(

louiswang2009的专栏 601

Inside the C++ Object Model:3、Data 语意学

class 的大小受到三个因素的影响: 语言本身所造成的额外负担 编译器对于特殊情况的优化处理 Alignment 的限制 3.1 Data Member 的绑定 3.2 Data Member 的布局 Nonstatic data members 在 class object 中的排列顺序将和其被声明的顺序一样,任何中间介入的 static data members 都不会背放进对象布...

qq_30534935的博客 213

vue中的v-model详解

不使用:需要手动监听事件并更新视图,适用于简单场景或小型项目。使用:可以自动化地实现数据变化到视图的更新,减少了手动同步的需求,更加适合复杂的应用场景,但相对复杂一些。

czczybb的博客 576

Halcon与QT混合编程 C++ QT中使用visualize_object_model_3d 显示3维图像的问题

我在ihalcon论坛中提问,有同学回答了我用C#的方式。我得到了启发,用QT解决了使用visualize_object_model_3d 显示3维图像的问题。 论坛问题地址: http://www.ihalcon.com/read-11864-1.html 原问题: 我把halcon代码导出成C++代码。并在QT中调用。 其中用到了 visualize_object_model_3...

Coding home - 漂流瓶jz 3364

Using the SharePoint 2010 Client Object Model_part_3

1. Using the SharePoint 2010 Client Object Model - Part 3 In the first two parts of this posting I described the pattern you can use to retrieve data with the client object model (“client ...

weixin_30632089的博客 112

SE(3) Diffusion Model-based Point Cloud Registrationfor Robust 6D Object Pose Estimation 论文解读

首次将点云配准工作引入SE(3)下的扩散模型,关于ICP、ICP变体以及DCP、SE(3)流形的介绍,以及SE(3)扩散模型的配准框架

NPU 研0 1932
上一篇: 3.2 Execution Model
下一篇: 3.4. Application Binary Interface
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值