Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity over time measurement (out of sequence)

Hi,

i have the following problem:

I would like to monitor pictures from my USB camera and during that process to analyse them. So far i have managed to show the image sequence on the front panel until i press the stop button, with a while-loop and the grab-function of Vision...

What i would like to do additionally is:


 

1.)    The User should be possible to determine a ROI before he starts the sequence. Moreover it should also be able for him to change the ROI during the Measurement, for example like here with the green&yellow line:

http://www.mbecontrol.com/RHEEDsoftware.html

 

2.)    During the sequence i would like to measure the intensity inside the ROI of each frame and give out the mean intensity over time in a graph. The frames of the sequence are similar to the one shown on the link given above. There at the bottom of the picture you can see also the time dependent course of the intensity, i also want to measure...

I have now tried 2 ways for that (Intensity measure & ImageToArray, both from vision subpalette) but i didn’t success and i even don’t know if that’s the right way to go on.


Until now i have several problems with the Vision functions and i don’t know how to remedy the occuring errors. So maybe someone can help...

Best wishes

Dominik

0 Kudos
Message 1 of 12
(5,086 Views)
Hi Dominik,

Have you tried looking at the Light Intensity example? If you are using LabVIEW this can be found under Help>>Find Examples>>Toolkits and Modules>>Vision>>Functions

Regards

Jon Bowers Applications Engineer
NI UK & Ireland
0 Kudos
Message 2 of 12
(5,071 Views)
Hi Jon,

i have looked for it but i can't find it ...in my folder Toolkits and module i have only two folders called "application builder" and "real time" !!!
I have had several problems with installing everything correctly, because i am using LV 8 and Vision 7... consequently i have had to copy some file from my LV 7 folder to the LV 8 folder to be able to use Vision in LV 8 ... maybe that's the reason why i don'T have this example....

Can i download it anywhere or can you attach it in a reply ?

Would be great.

thank you very much,
Dominik
0 Kudos
Message 3 of 12
(5,066 Views)
Hi Dominik
 
I have attached below the relevant example. This should run fine on your machine. I think that this should help with your project but if you have any problems I'm happy to advise.
 
regards
Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 4 of 12
(5,053 Views)
Hi again,

there is an error message when i try to open it :
"
...Labview load error code 9 : VI version(8.5) is newer than LAbview Version (8.0) "

I have LV 8 and vision 7...

is it possible to see the block diagramm anyway?


Message Edited by Portisblaed on 11-29-2007 07:41 AM
0 Kudos
Message 5 of 12
(5,048 Views)
Ok sorry, that was an labVIEW 8.5 file, I have saved it back to an 8.0 file this should open fine. If you still have further trouble or cannot view the subVIs within it tell me and I well send them each through separatly.
 
regards
Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 6 of 12
(5,043 Views)
Hi,

thank for the file! Now it works and it is a good example for my project, but with this Intensity VI my possibilities of measurement are really limited...
For example, sometimes i need another shape of ROI, not only the rectangle... Or it's also not possible to measure RGB pics, only grayscale.


0 Kudos
Message 7 of 12
(5,038 Views)
Hi
 
I have had a look into this for you and have some ideas for you think on: In the above example the subVI "IMAQ light meter (rectangle) defines the ROI as a hardwired rectangle for every iteration, below I have written the changes to this VI to prompt for a user defined ROI before the sample begins. I hope you can use this as an example or which way to start proceeding with your program. Depending on if you needed this to be a continuous feature (ie. Configurable while the program is running) you might want to consider some kind of event structure with a "change ROI button". 
 
As for colour - You are making an intensity measurement in the above specifications which by its nature is greyscale. In what way were you hoping to incorporate RGB into this? If you can give me more of an idea what you are aiming at here I will try and advise.
 
I hope this is helpful to you
 
regards
Graham Green
Software Product Marketing
NI | Emerson
Download All
0 Kudos
Message 8 of 12
(5,003 Views)
Hi,

what you have done sounds great, but i can't open the files, because i am using LV 8,Vision 7...

The video frames i am going to analyse are in RGB, but eventually i want to measure the Intensity of the light points. Maybe you are right and i can just convert the images into grayscale  before i measure the intensity!

Thank you,

Dominik
0 Kudos
Message 9 of 12
(4,999 Views)
Hi
 
I am sorry about that I did it again - not thinking. Lets try this one again....
Graham Green
Software Product Marketing
NI | Emerson
Download All
0 Kudos
Message 10 of 12
(4,993 Views)