How far away can you place your camera? If you can get a good distance between the camera and the part, the distortion can be corrected using NI's calibration routines.
Another possibility is a telecentric lens, which has practically no distortion. I don't think they make them that big, though, so you would still have to move the camera or the object using a stage. The telecentric lens does give you a precisely calibrated image, and if you have a precision stage you can move exactly one image width at a time. I built a system that measures within a few microns using composite images assembled from multiple images.
Depending on the type of measurement you are doing, it might be possible to set up two cameras at opposite ends of the part and ignore t
he center of the part. You would need to figure out the distance between the cameras, but once you did that you could measure the distance between points in the two images.
Bruce
Bruce Ammons
Ammons Engineering