Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ config Issues - New to Vision Lib - Please Help

Solved!
Go to solution

Hey Everyone,

 

Using the Vision Development Module, LV17.

 

The Image processing VIs do not seem to work for me, I am probably doing something wrong. Please see the attached picture.

 

Objective: load bmp from desktop, and perform image processing.

 

Data: U8, but BMP is standard 24-bit. I just take Red for the gray scale, verified all RGB values are identical. 

 

It seems adding in the border cause the edge detector not to fail but the image is totally screwed up (black). But if I do not use a border, the before image is correct and I can an error for the after (likely need the border for the mask multiply.

 

Any ideas? thanks everyone

 

 

0 Kudos
Message 1 of 6
(2,954 Views)

Hey Everyone,

 

Here is another picture/attempted to get edge detection working. 

 

See attached image, thanks.

0 Kudos
Message 2 of 6
(2,932 Views)
As you corrected in second post, the edge detection VI modifies the source and hence need to copy the original image before modifying it.
-For the other question, try to adding the edge extracted image to original image to highlight the image to see the edges properly.
-attach sample image and code, instead of screenshots for better help.
Thanks
uday
0 Kudos
Message 3 of 6
(2,924 Views)

Hi Uday,

 

Thanks for your reply my friend. Attached is my code, and my picture (251 x 111 pixels) please review and see what you think. 

 

Looking at the output, it seems that it has a lot of zeros and ones, could this be a multiply map?

 

I tried to find an IMAQ function to add/multiply, I do not see any way of merging these images in any form. No one has experience using the typical filters of Vision? I tried other filters and they have the same problem, there is some step I am missing. I checked the examples and there are mostly inspection examples, and a histogram, not much on real image processing algos.

-Peter

Download All
0 Kudos
Message 4 of 6
(2,910 Views)
Solution
Accepted by petermotiv
-Try IMAQ Add http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_add/
-Image Src A is your original image and Image Src B is edge extracted image.
-If you don't want the original image to be overwritten or modified use extra imaq create and connect it Image Dst input of IMAQ Add.
Thanks
uday
Message 5 of 6
(2,884 Views)

Uday,

 

You're the man, and you are correct, it seems the image processing VIs generate an image mask as an output. I also attempted to multiply the output with the original image and it was great, I'll likely go back to adding + histogram equalization.

 

*** Code & Image is attached to support others in the forum.

 

 

0 Kudos
Message 6 of 6
(2,862 Views)