Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stitch multiple images into one?

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.

0 Kudos
Message 1 of 4
(7,275 Views)

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

www.ni.com/support

 

 

0 Kudos
Message 2 of 4
(7,269 Views)

 

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.

0 Kudos
Message 3 of 4
(7,261 Views)

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

www.ni.com/support

 

 

0 Kudos
Message 4 of 4
(7,252 Views)