Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ missing images, parallel

Solved!
Go to solution

Hello, I am using Gigabit Ehternet Camera and after grabbing an image I search for the templates and cut them (always two templates cut). So I have to small parts of grabbed image (Left Square, Left Ellipse, Right Square, Right Ellipse). At the moment I process only Ellipses. Right and Left Ellipse are put as an input to WhichType.vi and further to GrainDecision.vi. If I use only one instance of WhichType everything is ok, and I do not have any missing images in ResultGrainLeft or Right. But if I put two vi's, as on description.jpg, sometimes there are missing images in IMAQImage indicators or something is wrong with them (two the same images or something like added images, random) But there is no errors and score changes. Any ideas what can be wrong in GrainDecision.vi ?

 

Karol

Download All
0 Kudos
Message 1 of 4
(3,689 Views)
Solution
Accepted by topic author k_pala

Karol,

The problem is in GrainDecision.vi, and the constants you pass to IMAQ Create. Images are unique by name, and if an image with the input name was already created, that is the image that will be returned. Calling IMAQ Create with the same input twice will only create one image, regardless of the context it was called in. Each instance of GrainDecision.vi is going to be using the same thresholdGrain, SubDstGrain, etc. images. I'd also recommend not using unnecessary temporary destination images. Generally you can leave the destination image unwired and the source image will be altered. You can probably eliminate 3-5 of those IMAQ Create calls in GrainDecision.vi and lower your memory footprint and get a small speed improvement

Tyler Weston
Vision R&D
National Instruments
0 Kudos
Message 2 of 4
(3,654 Views)

HEllo I found the solution before read it here but, was the same 🙂 I connected so many destinations because wanted to eliminate all problems with old references, that is all

 

Thank you

 

Karol 

0 Kudos
Message 3 of 4
(3,608 Views)

Hello

According to  missing images. Has anybody problem like that: after putting IMAQEqualize.vi I have some missing images (maybe 1% but it is random). I connected Image Dst but  did not Image Mask, because I want process entire image with equalization. But I found out if there is Image Mask connected problem is gone, any ideas ? Of course I can connect it but it is more new Images to Create.

 

Thank you

Karol 

0 Kudos
Message 4 of 4
(3,568 Views)