Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Started by programsunlimited at 11-10-2008 1:49. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  11-10-2008, 1:49
programsunlimited is not online. Last active: 12/2/2008 9:06:28 PM programsunlimited

Top 500 Posts
Joined on 11-01-2008
Posts 8
Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Reply Quote
I have Leadtools Medical Imaging v 15 and am working on a project where one of the requirements is to automatically stitch together a mosaic of overlapping images and present a single combined image for viewing.

There are commercial packages like PanaVue and AutoStitch which automate this process... We'd like to use Leadtools to do this with overlapping shots of x-ray images.

I have tried the simple image stitching examples but am looking for something that will automatically warp, resample and blend together the images. I believe that I have to use some method to detect key points in common between the overlapping images and then measure distances and combine.

   Report 
  11-10-2008, 9:24
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Reply Quote
Is it possible to send me a sample image that shows the original files and how the result after stitching the image should be? Please put the images in a ZIP or RAR file prior to sending them.

You can either post the files here, or send them to support@leadtools.com
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  11-10-2008, 13:11
programsunlimited is not online. Last active: 12/2/2008 9:06:28 PM programsunlimited

Top 500 Posts
Joined on 11-01-2008
Posts 8
Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Reply Quote
Here is a sample of the images. The images are labelled Row1Col.. and Row2Col.. where the Col in the name refers to the position of the image in the row.

Looking at the attachment the images correspond to these positions

Row1Col1 Row1Col2 Row1Col3 Row1Col4 Row1Col5
Row2Col1 Row2Col2 Row2Col3 Row2Col4 Row2Col5

Each image has some overlap to the image next to it and the image below it.

I'd like to be able to combine the images in a single image that looks like the FullImage.jpg in the attachment.

   Report 
  11-10-2008, 13:14
programsunlimited is not online. Last active: 12/2/2008 9:06:28 PM programsunlimited

Top 500 Posts
Joined on 11-01-2008
Posts 8
Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images

Attachment: Xray.zip
Reply Quote
For some reason the zip file did not attach to the post. I'm trying to attach it here and will send to support@leadtools.com as well.

   Report 
  11-11-2008, 12:10
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Reply Quote
A useful function that might help you improve the results when the bordering images do not have the exact same angle and scale is the Combine Warp function.

However, even with this function, making this process 100% automatic using LEADTOOLS will not be an easy thing to do. Your main problem will be defining at least 2 identical points in each of the 2 adjacent tiles. You may have to do this with help from the user if the amount of shift is not fixed every time.
Once you have these points, you can begin with an image as the foundation and combine it with a big empty background image without warping, then start to add the other tiles with the warp function so that they fit in with the previously added tiles.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  11-11-2008, 15:45
programsunlimited is not online. Last active: 12/2/2008 9:06:28 PM programsunlimited

Top 500 Posts
Joined on 11-01-2008
Posts 8
Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Reply Quote
Thanks for your response. I was wondering if the L_CorrelationListBitmap and L_CorrelationBitmap together with L_CombineBitmapWarp and/or L_CombineBitmap could give a reasonable level of automatic point detection? If so, are these available in .NET code or only through C DLLs.

   Report 
  11-13-2008, 12:08
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images
Reply Quote
Using the correlation function, you might be able to locate similar points but you must extract small rectangular areas from one image and compare them to the other image. Also, you should test this approach thoroughly with different cases, because the function is not intelligent enough to work with variations in images. This means you need to specify threshold values suitable for your images that are neither too high nor too low to get correct results.
The name of this function in .NET is CorrelationCommand Class.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » Re: Are there any methods in Leadtools Medical Imaging to use to code an application to automatically stitch together a mosaic of images

Powered by Community Server, by Telligent Systems