LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spatial image transformation

I acquired data with our oct-system that are represented in a 2-dimensional array. When I plot the data in an intensity graph I get a warped image that does not correspond to the real structure of the depicted object. This warping follows a square function. How can I apply this function to the line indices (based on the apex of the parabola that lies in the center of the lines) and rearrange the array with the same number of lines and columns as the input array?

Thanks for your ideas.

0 Kudos
Message 1 of 4
(3,167 Views)
You might want to try a matlab script (see attached) using the matlab interp2 function. This, of course, won't work if you don't have matlab.
0 Kudos
Message 2 of 4
(3,153 Views)
It sounds like your intensity graph does not have square "pixels".  Be default, the intensity graph has a square aspect ratio.  If your array  is not a square array, it will appear distorted on the graph.  If this is the problem, resize the graph so it has the same aspect ratio as your data.  You can do this manually by dragging the corners of the graph, or use the graph properties to change the display size exactly.  If you do it programmatically, it can be done dynamically based on your data size.
0 Kudos
Message 3 of 4
(3,145 Views)
If you really want to rescale your data and have no good way to do it, check out ImageMagick, an open source image manipulation set.  It is all command line, so can be called from LabVIEW.
0 Kudos
Message 4 of 4
(3,144 Views)