01-26-2009 08:27 AM
Hey,
First of all, not sure if this is the right message board, but I cant find a message board for NI Vision questions.
Heres what I'm doing. To save time in the inspection process I have extracted a subimage from my original inspected image. I used this subimage to threshold at a really low threshold, which is where I get my time savings, but now I need to put that sub-image back into the original image at the same location (just to put into a viewer and make the customers happy). How do I do it?
Thanks
Solved! Go to Solution.
01-26-2009 08:57 AM - edited 01-26-2009 08:58 AM
Hey,
You can use IMAQ ImageToImage:

Andrey.
01-26-2009 10:04 AM
Thanks Andrey,
I actually tried to use that originally and it didnt work, but that was because I had copied the original image incorrectly. So by knowing that ImageToImage was definately the way to go, it made it clear that earlier code was implemented wrong. Basically I made the mistake of copying by doing the following:
tempImage = DestinationImage
instead of:
copy(destinationImage, tempImage).
Since my viewer was tied to my DestinationImage, it was screwing everything up.
Thanks!