LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement a general line detection algorithm in a LabVIEW vision FPGA?

Dear all,

We are trying to implement a line detection algorithm in cRIO 9039, but the LabVIEW vision FPGA has limited functions. Can anyone please suggest some examples related to vision FPGA algorithms?

Thanks & regards
Sukumar

0 Kudos
Message 1 of 3
(1,143 Views)

Dear all,

 

In addition to the above question,

 

I have converted the input image into a binary image using the threshold function; after that, I need to convert the binary image to the 2-D array. If I have 2-D array values, I can do a simple least-square fitting to the image data, but no image to array conversion function is available in vision FPGA. Kindly suggest any approach to converting the image to 2-D array values in the vision FPGA program.

 

Thanks & regards
Sukumar

0 Kudos
Message 2 of 3
(1,085 Views)

@NAGINENI wrote:

Dear all,

 

In addition to the above question,

 

I have converted the input image into a binary image using the threshold function; after that, I need to convert the binary image to the 2-D array. If I have 2-D array values, I can do a simple least-square fitting to the image data, but no image to array conversion function is available in vision FPGA. Kindly suggest any approach to converting the image to 2-D array values in the vision FPGA program.


A 2D array is usually simply a 1D array of height * width values. So there is really nothing you need to do to treat a 1D data stream as a 2D image other than calculating the stride or byteWidth of the image and looping through the 1D data accordingly.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(1,070 Views)