From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



进行粒子分析时IMAQ Threshold.vi发生1074396080错误



主要软件:
主要软件版本: 3.0
主要软件修正版本: 3.0
次要软件: N/A

问题:

我正在对多个图像进行粒子分析,我修改了范例查找器中的范例Particle Orientation Example.vi来执行粒子分析,但是我收到了一个错误,为什么我会得到这个错误消息呢:ERROR - 1074396080 occurred at IMAQ Threshold Invalid image type?



解答:

当处理特定的图像类型时,如果使用了不正确的类型的thresholding VI,就会发生这个错误

在执行粒子分析时,要记住下面的提示:

  1. 如果是彩色图,你需要在执行粒子分析前调用 IMAQ Color Threshold.vi
  2. 如果是单色图,你需要在执行粒子分析前调用 IMAQ Threshold.vi
  3. 如果是彩色图并且执行IMAQ Threshold.vi,你需要在执行IMAQ Threshold.vi前,利用IMAQ Cast.vi将16位图像转化为8位图像

如果利用IMAQ Color Threshold.vi分别配合彩色图或单色图执行IMAQ Threshold.vi,你将会得到“Invalid image type”这个错误 

Color Image Thresholding VI部分代码:

 

Greyscale Image Thresholding VI 部分代码:

 



相关链接: Knowledge Base 2O0GG2XL: StillColor Acquisition From Channels 1 Thru 3 Give Invalid Image Type Error

KnowledgeBase 3T28GSRX: Error -1074396080 at IMAQ WriteBMPFile



附件:





报告日期: 09/07/2004
最近更新: 02/27/2015
文档编号: 3D6E83CH