01-14-2014 11:39 AM
Hi, I would like to make imae panorama. If I open two consecutive images (for example 1.jpg and 2.jpg or 2.jpg and 3.jpg or 3.jpg and 4.jpg), it works fine, but at the third picture it fails. I would like that when I open 1.jpg, then 2, then 3, then 4.jpg it concatenates the pictures correctly. Could somebody fix it and upload the fixed VI? Thanks.
Solved! Go to Solution.
01-15-2014 03:07 AM
Dear holex,
I'm really unsure as to what you're trying to accomplish in this application. Please try commenting and cleaning up your code, so that I have a chance to do debugwork. The biggest thing that helps me and fellow forumgoers would be to separate the application functions into clean logical units. For instance, you could have a separate VI for the algorythm that does the region match, one that does the merging of two images, one that loads images from file and so on.
This way, we can narrow down the potential problems and get results.
Kind regards:
01-15-2014 05:14 AM
01-15-2014 12:43 PM
Could you upload the fixed VI? I have tried a lot of thing: IMAQ Copy, shift register, etc, but I couldn't solve the problem.
Thank you!
01-17-2014 09:06 AM
Somebody please?
01-17-2014 10:19 AM
01-17-2014 10:43 AM
I would like to make a panorama image from 1.jpg-10.jpg.
First, I open an image (1.jpg), then I open the second picture, 2.jpg. On the second picture I select a 100x900 pixels area, it will be the pattern. The first and the second image have a common area, which contains this 100x900 template. So I find the center of this template on the first image (IMAQ Match Color Pattern gives its position) . From the position and the size of the second image, I calculate the size of the new image, and resample the image (IMAQ Resample). I copy the first image to the resampled image, and then,th second image too. Up to this point, the program works. But then, I would like to add the 3.jpg to the panorama, which also has a common area with the 2.jpg, but the panorama which was maked from 1.jpg and 2.jpg disappears, only 3.jpg will be in the panorama picture, instead of 1.jpg, 2.jpg and 3.jpg.
Thank you for your help!
01-17-2014 12:35 PM
Please find the attached vi.
-I did not do optimization of code, just made it to work. Please do optimizations to current code.
-IMAQ Bit map overlay is nondestructive, which means when you added two images together in first iteration, it will not add or modify the image. So, you need to use merge overlay which adds overlay to image.(this is one possible way, since you used overlays, i tried to merge them to image.There can be other ways also).
01-17-2014 02:09 PM
Thank you very much for your help!
08-25-2015 02:37 PM
Hi,
I have a similar problem, I have two image datas and I want to merge these two in only one, like the operation in the image below.
Can do it in LabVIEW?
ty