Hi JB,
here's an idea:
-each time you get an image you can get the position value and insert it in an array
- when you have your whole image you will have created an array of all the position values relative to all the scans
- from this array you can calculate the minimum displacement between scans; this is the spatial resolution of your system when the slab is moving at maximum speed
- you can then convert your whole image into a 2D array using the IMAQ ImageToArray function
- you have to extract from this array only the scans (1D arrays) spaced at the spatial resolution calculated and reassembled in a new 2D array
- at this point you can convert your 2D array in an image with the IMAQ ArrayToImage function
Your new image is formed by sequence of scans
uniformely spaced, and your slab should look correctly shaped.
I hope I have been quite clear, if not don't hesitate to ask details.
Good luck,
Alberto