How Do I Select an Image From a Previous Step in VBAI?

Updated Dec 4, 2018

Reported In

Software

  • Vision Builder for Automated Inspection

Issue Details

I have a sequence of steps in a VBAI inspection that takes a picture of an image and process it. In one of the last steps, I want to access the original or previous image, but VBAI automatically uses the latest image that I have. How can I choose one of my previous images for this step?

Solution

By default, the active image is the result of the previous step. Using the Select Image step found in the Acquire Images tab, you can choose any image from all the previous steps and set it as active image to inspect.


This can be helpful if you want to process multiple images in the same VBAI inspection. An inspection can only execute steps in sequence. If you were using a Vision Assistant step to extract a color plane from an image, and you wanted to extract all three planes from the same image, you would have to call the step three times in a row. In between each one, you would need to call the Select Image step in order to make the original image as the active image. 

Additional Information

There is an option called Copy Current Image Overlay. When enabled, the step will copy the overlay of the current image to the image you selected from the Image Selection list. It is important to note that not all VBAI steps result in a new image. For example, measurement steps would not create a new image. In the Image Selection list, only the steps that create distinct, new images will be available to choose from. Also, you cannot place a Select Image step before an image has been loaded into VBAI in a previous step. You will receive the below error if you try to do so when you click on the step in the inspection steps palette.

WAS THIS ARTICLE HELPFUL?

Not Helpful