Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can avoid the following error: "The image is not large enough for the operation."

I am trying to make a threshold mask that runs the image and computes the threshold of small pieces of the image. To solve this problem, it is necessary to use the IMAQ Extract, compute the threshold of the image extracted and compose a new one. However, something goes wrong after the first iteraction, when the data comes from the IMAQ UserLookup.vi and I receive the following error message: "IMAQ User Lookup
The image is not large enough for the operation."
I have already tried to copy the image to a buffer and operate it, but I still receive the same message.
Does anyone know what is going wrong?
The source code is attached.
0 Kudos
Message 1 of 2
(3,714 Views)
Here is your problem:

When you extract your image in the loop, it replaces the original image with the extracted image. The second time through the loop, you are starting with the extracted image instead of the original image.

What you need to do is feed both the original and destination images into the loop. Each time you do the extract, use the original as the source and the destination image as dest. This way, each time through the loop you will start with the original image.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 2
(3,713 Views)