Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I go about creating a grayscale intensity array?

In my program I snap pictures. Between each picture there is a phase shift, so each picture is going to have a slightly different position than the previous. I would like to be able to test my program to see if my algorithym works. To do this I need to create my own intensity arrays and shift each subsquent array by some known degrees. Is there a way to to input intensity values into a predetermined array size such as 1024X1024 picture? Or to just create a 2D grayscale intensity array in labview?
0 Kudos
Message 1 of 2
(2,870 Views)
The Vision Module for LabVIEW has a function called IMAQ ArraytoImage. Have you looked at this function yet. It takes a 2D array of values and creates an image out them. The vi is located under Vision>> Vision Utilities>> Pixel Manipulation. With this function you could create a 2D array of any size using double nested for loops, and directly change that to an image that you can test your algorithm with.
0 Kudos
Message 2 of 2
(2,870 Views)