LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Varying light intensities on a picture

What I would like to do is take a picture any picture really and vary a part of it programatically so that I can do something like vary the light intensity on a specific part of the picture.

Any ideas?

Thanks,

Brian
0 Kudos
Message 1 of 5
(3,059 Views)
Hi Brian,

If you put the picture into a picture control, then you can get an invoke node of that control and access the picture as an array of values. There, you can change certain values of the array to produce the change you desire. Hope that helps!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 5
(3,059 Views)
OpenG has a little toolkit that allow change of brightness and contrast of an image. It might not be sufficient for what you want to do, but that could get you started

http://www.openg.org/tiki/tiki-index.php?page=Image%20Processing

PJM


  


vipm.io | jki.net

Message 3 of 5
(3,059 Views)
PJM
Thanks for the powerful link, I am new at this application for LabVIEW and don't know enough to just understand what I need to do, but how do I get this VI to do analysis on a picture? Right now the Block diagrams just show selection boxes where you can create logical shifts of the bits, I don't even quite know what that does but I think it would help to be able to see how it affects a picture, so any ideas on how I would go about doing that?

Thanks alot PJM

Brian
0 Kudos
Message 4 of 5
(3,059 Views)
Brian,

Create a new VI.
From here place a Picture Control on the front panel.
Now go to the block diagram. Here, you will see the picture control. Create an invoke node by right clicking on the picture control and selecting Create >> Invoke Node. Select Get Image for the node. Now place an unbundle by name function, found on the cluster palette. Wire the Image Data to the function, and select image. Now right-click on the block diagram and go to Select a Vi... Navigate to the image processing vis, select adjust brightness of color table.vi, and place it on the block diagram. Now wire Image to the color table terminal input of the adjust brightness on color table.vi. I have attached a screenshot of my block diagram to help expla
in how to get these image processing utilities. Good Luck!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 5 of 5
(3,059 Views)