LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity graph

hi.
i use intesity graph to display captured images from my webcam. but the images are black and white in it. how can i display the images with their colors?
the other question is all webcams have some resolutions such as 320*240, 640*480, ... and the default in most of them is 320*240. how can i change the resolution in labview?
thanks
ali s.mootab
0 Kudos
Message 1 of 6
(3,283 Views)
Hello ali,

to change the colors: the intensity graph has a property node called 'colormap' (or similar, I have no LV at hand).

What resolution do you want to change: the resolution of your webcam (look into the manual and check if there are any software control commands) or the resolution of your intensity graph (just set the x&y-axis to the correct values or use autoscaling)?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,272 Views)

Hi GerdW.

Thanks for your attention.

For the first I try to find.

For the second I want to change the resolution of captured image from webcam, not Intensity Graph. But excuse me did you think you're wrong. I use 'capwind.dll' to capture images from webcam. I think I have to find a dll like this to change the resolution of the webcam in the registry or maybe in its driver that is installed. I think the software that is with the webcam do some like this.

Ali S.Mootab

0 Kudos
Message 3 of 6
(3,258 Views)
Hello Ali,

your 'capwind.dll' surely belongs to the webcam software/driver. So you should contact the guys from that company to give you advice!
If you have luck in writing your own driver for your webcam, it's maybe a good idea to give this to NI to incorporate in their instrument driver library 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,255 Views)
Hi GerdW,
I'll attache my program for you. I like it very much! you can use it to capture image from your webcam if you have. But images will be displayed just with its blue components. I want to display it colorfully. Can you help me?
If you extract it you will see capwin.dll.
Thanks.
Ali S.Mootab
0 Kudos
Message 5 of 6
(3,241 Views)

Hi GerdW,

I found it. There is a ColorTable property node for Intensity Graph. This is an array of 256 elements with RRGGBB format. You have to initialize this ColorTable property node and I think the Intensity Graph uses this table for a list of colors. Is there any default color table for this reason that contains all colors?

Thanks,

Ali S.Mootab

0 Kudos
Message 6 of 6
(3,238 Views)