NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

错误:imvalid image type


我在使用下列代码时出现了错误信息:invalid image type,请教高手问题出在哪里?
(CWIMAQVision1:IMAQ控件),执行LearnColor时出错.

Dim srcImg As CWIMAQImage
Dim srcColorInf As CWIMAQColorInformation

Set srcImg = New CWIMAQImage
Set objImg = New CWIMAQImage
Set srcColorInf = New CWIMAQColorInformation

CWIMAQVision1.AboutBox
CWIMAQVision1.ReadImage srcImg, App.Path + "\test.jpg"
CWIMAQVision1.LearnColor srcImg, srcColorInf
0 项奖励
1 条消息(共 1 条)
3,643 次查看