Hello,
I have a square array of approximately 400 images (200 x 200 images), and I am trying to stitch them together using ImageMagick. The images have a 10% overlap between each one. I simply want the output from two stitched images to be the single stitched image (no background, etc.).
I need help figuring out how to stitch two images together so that there is no space between them, but the overlap is not shown in the stitched images. Any ideas would be greatly appreciated. Thank you.
Microscopy Image Stitching
Re: Microscopy Image Stitching
I would use a dedicated stiching program like Microsoft ICE or Hugin - both are free.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Microscopy Image Stitching
You can either composite pairs of image together using -gravity and -geometery to overlap them. see -layers composite or -mosaic
http://www.imagemagick.org/Usage/layers/#layer_examples
http://www.imagemagick.org/Usage/layers/#mosaic
http://www.imagemagick.org/Usage/layers/#merge
You can combine many images with the same overlap using montage with negative geometry offsets. see
http://www.imagemagick.org/Usage/montage/
http://www.imagemagick.org/Usage/montage/#overlap
http://www.imagemagick.org/Usage/layers/#layer_examples
http://www.imagemagick.org/Usage/layers/#mosaic
http://www.imagemagick.org/Usage/layers/#merge
You can combine many images with the same overlap using montage with negative geometry offsets. see
http://www.imagemagick.org/Usage/montage/
http://www.imagemagick.org/Usage/montage/#overlap
-
- Posts: 1944
- Joined: 2010-08-28T11:16:00-07:00
- Authentication code: 8675308
- Location: Montreal, Canada
Re: Microscopy Image Stitching
nip2 and vips have been used to do this efficiently, e.g. http://www.vips.ecs.soton.ac.uk/vips-7. ... ode26.html.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Microscopy Image Stitching
I wrote a simple stitcher for this type of thing (involving slightly overlapping maps) It is raw and kludgy, but I do use it...
http://www.imagemagick.org/Usage/scripts/overlap
It extracts smaller 'sample area' from one image, then tries to find those areas in another image. when I finds a match it outputs a 'merged' image. It will probbaly need adjustments for the sample areas, and match thresholds, but it is a start if you want to DIY it.
Perhaps Fred likes to see if he can improve it
http://www.imagemagick.org/Usage/scripts/overlap
It extracts smaller 'sample area' from one image, then tries to find those areas in another image. when I finds a match it outputs a 'merged' image. It will probbaly need adjustments for the sample areas, and match thresholds, but it is a start if you want to DIY it.
Perhaps Fred likes to see if he can improve it
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Microscopy Image Stitching
rtown12 wrote:Hello,
I have a square array of approximately 400 images (200 x 200 images), and I am trying to stitch them together using ImageMagick. The images have a 10% overlap between each one. I simply want the output from two stitched images to be the single stitched image (no background, etc.).
I need help figuring out how to stitch two images together so that there is no space between them, but the overlap is not shown in the stitched images. Any ideas would be greatly appreciated. Thank you.
It would help if you could proved at least two overlapping images so that we can see what really are doing and need. You can post them to some free image hosting web site and then put a link to them here.