Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Load image from LabVIEW into Vision Assistant

Hi,
 
I'm a new user to LabVIEW and its components, and I have some problems with my application. I want to take pictures in real-time and analyze the pixel values (e.g. mean intensities in different ROI). I found a VI for LabVIEW that gives me the picture (I can also see the picture in live-mode). I'm now trying to connect the image shown from this VI to a Vision Assistant-module, which calculates the measurements I want to make. I may have missunderstood how to work this out, but I'm trying to wire the image taken to my Vision Assistant's Image-input. It seems like the Vision Assistant can't take this image as an input, it will only calculate the values from the example image I used when I created the script in Vi. As.
 
I guess there is a better way to do this calculation, as this doesn't work for me. The problem is that the whole thing is supposed to be done in real-time; i do not want to save files and load them. Any help or suggestions would make my world easier!
 
/Alex
0 Kudos
Message 1 of 4
(4,775 Views)
alex,
         Y do u want to load an image from labVIEW to vision asssistant? use a routine for image capture in labVIEW and then use a histogram and u should analysize the pixel values.




alex wrote:

but I'm trying to wire the image taken to my Vision Assistant's Image-input. It seems like the Vision Assistant can't take this image as an input, it will only calculate the values from the example image I used when I created the script in Vi. As.



I dont get it.U can use any image not neccasarily an example image.
Message 2 of 4
(4,761 Views)

I wanted to load it from LV to VA to do some work, for example extract color planes in VA, because it seems to not work out for me in LV. So the problem is the "example picture" is the one being processed in VA all the time, although I wired a picture from LV into my VA.

I'm trying to work around it as you say, and do the hole thing in LV (which is harder for me as I'm a novice in LV and VA is easier to use...). I ran into some problems right away though, please see my other post about calculating mean intensities for RGB pictures if you have time.

Also, thanks for your answer and taking your time!

/Alex

Message 3 of 4
(4,753 Views)

Hi, Alex,

Probably Get Image (Opens new image from a file) is the first step of your script? If so, just remove it.
In general you should do following:
- Place Vision Assistant Express VI on the block diagram (Vision Assistant UI will be opened)
- choose File->Open Image in the Vision Assistant menu and open your saved test image
- create your script as you want
- press Finish, then you will back to LV
- connect input to your image from grabber, and output to display and see result, then it should be OK.

Hint for you: you can see what inside of Vision Assistant Express VI by right mouse click, then select: Open Front Panel. Then you convert Express VI into standard SubVI and check how it works. (remember: you will be not able to convert it back to Express VI)

hope it help,
Andrey.

Message 4 of 4
(4,750 Views)