Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I add 8 bit image with 32 bit image in vision assistant

Solved!
Go to solution

hi;

I want to match 8 bit image with 32 bit image in vision assistant. I have a research topic on my Phd thesis about image processing and I found an image on the internet like this but I couldn't solve this problem in vision assistant. I have attached it. The original image and its thresholded state match on the same image. Please help me, how can I do it???

0 Kudos
Message 1 of 17
(6,223 Views)

Attached is an example script that works with the image that you uploaded.  The key is to use the Mask Color Operator and image buffers.  In the attached example, a thresholded image is overlayed back onto the original image.  The thresholded image can also originate from a separate image file.  In this case, you would open the color image, buffer the color image, use the Get Image function to open a new image of the same size, threshold the new image, buffer the result, retrieve the color image from the buffer and use the Mask Color Operate to create the overlay.

 

-Robert Eastlund

Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
Message 2 of 17
(6,212 Views)

Hi Robert;

I have received your answer this morning. Thank you very much for your interest and answer. I will run your program with my other example images. If have a problem, I'll ask you. Again thank you...

 

Baris  

0 Kudos
Message 3 of 17
(6,195 Views)

hi robert;

after sending your message, I tried your program on a new image. after subtracting "binary image inversion" from your program, it works. but now I have new question, how can I change the color of contaminated area of the fig? (for ex. blue). I attached my new example and new image for you. see you...

baris 

 

Download All
0 Kudos
Message 4 of 17
(6,186 Views)

I am not sure how to go about changing the color of the binary image mask within vision builder.  Anyone???

Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
0 Kudos
Message 5 of 17
(6,176 Views)
Solution
Accepted by topic author adanali

The proposed script was just erasing the zone of interest, replacing the thresholded pixels with zeroes. To fill this zone with a given color, one possible way is to invert the mask, use it to make a new image of the thresholded zone, multiply by the choosed color (use a saturated color otherwise you'll get color variations), and add the result to the previous image. 

That's what the attached script is doing.

 

Message Edité par chilly charly le 12-24-2008 10:24 AM
Chilly Charly    (aka CC)
Download All
Message 6 of 17
(6,152 Views)

hi chilly charly;

I want to thank you for your interest.  I applied your program to my all examples and it works very well.

Again thanks,

baris

0 Kudos
Message 7 of 17
(6,146 Views)

hi chilly charly;

I want to ask you a question about this topic. How can I put in this program pass/fail function? for example, if there are any colored areas (red areas) on the fig (like on the image), give fail decision, or if there isn't any defect on the fig (no colored area), give pass decision. how can I decided?

thank you....

 

0 Kudos
Message 8 of 17
(5,926 Views)

hi chilly charly;

are you there???

0 Kudos
Message 9 of 17
(5,887 Views)

hi chilly charlie;

after you sent your mail, as you remember it worked on all my examples. after that I improved my system and now I'm working about conveyor system. A camera (Guppy) triggered by an optical sensor sends image to the computer for every dried fig. but now I have a problem that I couldn't match your program and my program each other. I attached this file.

thanks a lot....

 

adanali

0 Kudos
Message 10 of 17
(4,944 Views)