Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems Masking unwanted images

I am attempting to process video images of fish passing at a hydroelectric dam and extract the fish from turbulence and other debris in the water. The data was collected on digital video tape and sent to the computer using an NI-1409 card for processing using LabVIEW 6.1. Initial filtering of the data filters most unwanted particles out, but leaves some, and then using IVB ShapeMatch.VI with a fish image works pretty well to identify the actual fish images. However, when I output the data to a file particles from after the initial filtering and fish data are both written to file (data such as center X, center Y, # of pixels etc.). I have tried using Shape Mask FIlter.vi to mask images that don't meet the minimum value for the
image used in the IVB Shape Match.vi but it hasn't helped, I've even set the acceptance value to 1000. Am I using the wrong mask filter or is there a better way to accept only the desired images? I've attached a copy of the LabVIEW program (I haven't tried to organize the from panel yet).

Thanks,
Mark

P.S. You may see this twice. I received an error the first time I sent it and sent it again
0 Kudos
Message 1 of 3
(3,007 Views)
Mark,
Without images to process, it is difficult to see where the information is changing, but from the sounds of it, you are seeing information you thought was lost being saved in your report. If this is the case, you are most likely not saving the image buffer that you think you are, or there is a race condition where it is being saved before its processed. I know this sounds basic, but insert Windraw windows in your program so you can see you image as it is processed. It helps to use the Vision IMAQ Copy (White vi) so you can see the image at each stage, and it does not change its display as you proceed though the program. This will help so you can see exactly what particles are being sent to the file.
Best Regards,
Chris D
0 Kudos
Message 2 of 3
(3,007 Views)
Can you please post a few example images for us to have a look at?




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 3 of 3
(3,007 Views)