01-14-2013 11:25 PM
Hi,
Development Environment:
Description:
Can anyone please shed some light on what ROI Descriptors types are allowed for IMAQ Learn Pattern 2?. Are only certain ROI types allowed for this VI, or can you use any type? I am attempting to create a template image with a mask - The ROI Descriptors type is set to polygon - is this valid or possible?
I get the -1074395247 error: "Invalid template descriptor".
However, just by simply changing the ROI type to Rectangle (and the coordinates to suit), I do not get this error (although this does not correctly mask out the pixels I don't need)
Thanks!
Solved! Go to Solution.
01-15-2013 02:19 PM
Hi Chris,
I would consult this KnowledgeBase article which points out why the error is occurring: http://digital.ni.com/public.nsf/allkb/F05924D50AD6472B86256F320075CDBF
Further there should be an example available for this particular VI and its usages with this directory:
Thanks!
01-15-2013 02:30 PM
01-16-2013 08:57 AM
Hi Chris,
I believe you should be able to create an ROI with a polygon. Please see this example: https://decibel.ni.com/content/docs/DOC-25241
Thanks!
01-16-2013 03:58 PM - edited 01-16-2013 04:05 PM
Thanks Matt for your help. That is a good example.
I had some success yesterday. I was able to get it working most of the time, although it can be quite fussy. It would be good if there were some guidelines for what ROIs are acceptable, and what aren't.
It appears that if you make the ROI too small in size, then it results in the aforementioned error (-1074395247). In addition, the "Broken line" type seems to throw this error quite frequently too.