Dashboard Image modification

I’m trying to add vision to some code, to learn about how vision processing works. I was hoping to modify the image being output on the dashboard. I’m trying to use the Color threshold function, but I get this error:

Error -1074396154 occurred at IMAQ ColorThreshold
  The image is not large enough for the operation.

Here is a picture of the code. http://dl.dropbox.com/u/967235/Screenshots/SS-2010-08-16_16.32.22.jpg
Can anyone tell me what I’m doing wrong?

The threshold should go on a binary image, not a grayscale image.
However, that error message does seem to be the reverse of what I’m suggesting.
The error is occurring on the “image threshold”, correct?
If you’re still having the error, try creating your algorithm with the NI Vision Assistant.

Hmm, the help for the threshold says that the resulting image is a grayscale u8, Also, i have tried it in the NI Vision Assistant, thats where i started. And yes, the error occures at the threshold.

I’m afraid I haven’t seen that error before, so I don’t have any suggestions. Go ahead and post the VI. I’d like to help get to the bottom of it.

Greg McKaskle

Heres the Dashboard Main.vi, http://dl.dropbox.com/u/967235/Dashboard%20Main.vi

Or, if you want it, http://dl.dropbox.com/u/967235/dashboard10.zip theres the entire project

Well, I know its stupid of me but… the error occurs only when it isn’t getting an image… which makes a lot of sense… Also, the result is only correct when it is a binary image. The Dashboard was failing to get the image.

So the function does seem to be outputting a binary image. So either i didn’t read the documentation correctly or its just wrong.
Which leads me to my next question, How do i create a binary image?

You can convert the image with a property node, or (I believe) there’s an option when you create the image with the “Imaq New Image” vi. (It should be in that enum that currently says "grayscale u8)

That enum doesn’t have an option for grayscale, but by clicking on the image and changing the palette to grayscale, it shows up fine…