05-16-2011 04:00 PM
Does NI library allow stitching some overlapping images? I have multiple images taken in the system, which I would like to merge into a single image.
05-17-2011 06:15 PM
Hi avmikh,
I think your best option for merging two images in C++ would be to use GDI+ or another image manipulation API.
A quick Google search will bring up some examples, but I didn't see any for C++. You may be able to adapt some of the C# examples to C++.
Regards,
Brandon V.
Applications Engineering
National Instruments
05-18-2011 09:25 AM
No, GDI+ doesn't seem to be up to the task. Image stitching is a more algorithmically complex procedure than what GDI+ provides.
I want to take a few pictures of the same scene - say, from different points, belonging to the same straight line, and looking into the same direction. These pictures will have some overlaps. Suppose I made 2 pictures, 100 by 100 pixels, moving in the direction of X axis of images. Suppose then, images overlap for some pixels, but I don't know how much. Add then realistic conditions regarding moving directions (not exactly along X axis), lighting conditions (light isn't along the optical axis, and the same object is lit differently on different images), lens distortions. Now I don't know how to transform pixels from image 2 to be able to overlay (or append?) them to image 1. This is a well-known problem, and some libraries provide APIs to do that. I am interested if NI has support in these areas.
05-20-2011 12:40 PM
Hello avmikh,
Measurement Studio does not support stitching, but I did find this resource that may help you get started with stitching.
Regards,
Brandon V.
Applications Engineering
National Instruments